aboutsummaryrefslogtreecommitdiffstats
path: root/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon.c')
-rw-r--r--daemon.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/daemon.c b/daemon.c
index 087f051f..b08f31e9 100644
--- a/daemon.c
+++ b/daemon.c
@@ -31,6 +31,10 @@
# include <unistd.h>
#endif
+#if defined(QNX)
+# include <unix.h>
+#endif
+
/* BSD portability hack */
#if !defined(SIGCLD) && defined(SIGCHLD)
#define SIGCLD SIGCHLD
@@ -203,5 +207,7 @@ nottyDetach:
/* set up to catch child process termination signals */
signal(SIGCLD, sigchld_handler);
-
+#if defined(QNX)
+ signal(SIGPWR, sigchld_handler);
+#endif
}