diff options
author | bapt <bapt@FreeBSD.org> | 2015-10-28 11:58:18 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-10-28 11:58:18 +0000 |
commit | c21ffb8d6aca32c9584cfa072f309a5890a21aea (patch) | |
tree | c13556877cfa7b8f6941e8141a6801cf91e72840 /lib/libc/gen/daemon.c | |
parent | ec14b01dd8898deebe0427357d842721add8e34c (diff) | |
parent | 39fb527bf90f6a5cb03d93bd49c310bbca016a45 (diff) | |
download | FreeBSD-src-c21ffb8d6aca32c9584cfa072f309a5890a21aea.zip FreeBSD-src-c21ffb8d6aca32c9584cfa072f309a5890a21aea.tar.gz |
Merge from head
Sponsored by: Gandi.net
Diffstat (limited to 'lib/libc/gen/daemon.c')
-rw-r--r-- | lib/libc/gen/daemon.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/gen/daemon.c b/lib/libc/gen/daemon.c index b359a87..15c6f4a 100644 --- a/lib/libc/gen/daemon.c +++ b/lib/libc/gen/daemon.c @@ -41,10 +41,10 @@ __FBSDID("$FreeBSD$"); #include <signal.h> #include <unistd.h> #include "un-namespace.h" +#include "libc_private.h" int -daemon(nochdir, noclose) - int nochdir, noclose; +daemon(int nochdir, int noclose) { struct sigaction osa, sa; int fd; @@ -56,7 +56,7 @@ daemon(nochdir, noclose) sigemptyset(&sa.sa_mask); sa.sa_handler = SIG_IGN; sa.sa_flags = 0; - osa_ok = _sigaction(SIGHUP, &sa, &osa); + osa_ok = __libc_sigaction(SIGHUP, &sa, &osa); switch (fork()) { case -1: @@ -74,7 +74,7 @@ daemon(nochdir, noclose) newgrp = setsid(); oerrno = errno; if (osa_ok != -1) - _sigaction(SIGHUP, &osa, NULL); + __libc_sigaction(SIGHUP, &osa, NULL); if (newgrp == -1) { errno = oerrno; |