mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
Fall back to signal() when sigaction isn't supported.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@391 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
3ed983c945
commit
ec87cb1571
2 changed files with 25 additions and 1 deletions
|
|
@ -153,6 +153,7 @@ ssize_t pa_loop_write(int fd, const void*data, size_t size) {
|
|||
/* Print a warning messages in case that the given signal is not
|
||||
* blocked or trapped */
|
||||
void pa_check_signal_is_blocked(int sig) {
|
||||
#ifdef HAVE_SIGACTION
|
||||
struct sigaction sa;
|
||||
sigset_t set;
|
||||
|
||||
|
|
@ -185,6 +186,9 @@ void pa_check_signal_is_blocked(int sig) {
|
|||
return;
|
||||
|
||||
pa_log(__FILE__": WARNING: %s is not trapped. This might cause malfunction!\n", pa_strsignal(sig));
|
||||
#else /* HAVE_SIGACTION */
|
||||
pa_log(__FILE__": WARNING: %s might not be trapped. This might cause malfunction!\n", pa_strsignal(sig));
|
||||
#endif
|
||||
}
|
||||
|
||||
/* The following function is based on an example from the GNU libc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue