]> git.ipfire.org Git - people/ms/dma.git/commitdiff
Only use SA_NOCLDWAIT if it is available.
authorPeter Pentchev <roam@ringlet.net>
Thu, 7 Oct 2010 08:32:57 +0000 (11:32 +0300)
committerPeter Pentchev <roam@ringlet.net>
Thu, 7 Oct 2010 08:32:57 +0000 (11:32 +0300)
This fixes the dma build on GNU/Hurd.

dma.c

diff --git a/dma.c b/dma.c
index 83491d70bb7cb6e367739b8b8e0f6093b090ec76..49b1634499427e3d78f78082c13b265b3ab219bc 100644 (file)
--- a/dma.c
+++ b/dma.c
@@ -216,7 +216,9 @@ go_background(struct queue *queue)
        daemonize = 0;
 
        bzero(&sa, sizeof(sa));
+#ifdef SA_NOCLDWAIT
        sa.sa_flags = SA_NOCLDWAIT;
+#endif
        sa.sa_handler = SIG_IGN;
        sigaction(SIGCHLD, &sa, NULL);