diff options
author | Pierre Ossman <ossman@cendio.se> | 2006-01-05 19:25:21 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2006-01-05 19:25:21 +0000 |
commit | ec87cb1571c293ff40b1191796c71275b6564694 (patch) | |
tree | e9de149c5786738c935ae7a3f1e57a5e424f551b /polyp/util.c | |
parent | 3ed983c945f2bd6ad7503c969a5506bae41a823b (diff) |
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
Diffstat (limited to 'polyp/util.c')
-rw-r--r-- | polyp/util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/polyp/util.c b/polyp/util.c index fdafe252..a7dc3b1c 100644 --- a/polyp/util.c +++ b/polyp/util.c @@ -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 |