From: Peter Pentchev Date: Thu, 7 Oct 2010 08:32:57 +0000 (+0300) Subject: Only use SA_NOCLDWAIT if it is available. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5045f344d3337f2eed00fce390221370697e54d9;p=people%2Fms%2Fdma.git Only use SA_NOCLDWAIT if it is available. This fixes the dma build on GNU/Hurd. --- diff --git a/dma.c b/dma.c index 83491d7..49b1634 100644 --- 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);