1 // u/* -*- Mode: C++ ; c-basic-offset: 4 -*- */
3 JACK control API implementation
5 Copyright (C) 2008 Nedko Arnaudov
6 Copyright (C) 2008 Grame
7 Copyright (C) 2013 Samsung Electronics
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; version 2 of the License.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
37 #include "JackControlAPIAndroid.h"
38 #include "JackConstants.h"
39 #include "JackServerGlobals.h"
43 struct jackctl_sigmask
48 static jackctl_sigmask sigmask
;
51 jackctl_wait_signals_and_return(jackctl_sigmask_t
* sigmask
)
57 #if defined(sun) && !defined(__sun__) // SUN compiler only, to check
58 sigwait(&sigmask
->signals
);
60 sigwait(&sigmask
->signals
, &sig
);
62 fprintf(stderr
, "Jack main caught signal %d\n", sig
);
66 //jack_dump_configuration(engine, 1);
81 // unblock signals so we can see them during shutdown.
82 // this will help prod developers not to lose sight of
83 // bugs that cause segfaults etc. during shutdown.
84 sigprocmask(SIG_UNBLOCK
, &sigmask
->signals
, 0);