diff options
author | 2002-07-10 07:05:02 +0000 | |
---|---|---|
committer | 2002-07-10 07:05:02 +0000 | |
commit | 891bcc0b2be870fef13d11f6fd17ba6b690235be (patch) | |
tree | c81879525ffee066dd55b1eb0c404ab3842c5316 /bin/systrace/systrace.c | |
parent | do not use p++ in tolower(). NetBSD PR 17540. sync w/kame (diff) | |
download | wireguard-openbsd-891bcc0b2be870fef13d11f6fd17ba6b690235be.tar.xz wireguard-openbsd-891bcc0b2be870fef13d11f6fd17ba6b690235be.zip |
do not close fds in daemon.
Diffstat (limited to 'bin/systrace/systrace.c')
-rw-r--r-- | bin/systrace/systrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/systrace/systrace.c b/bin/systrace/systrace.c index f3224220093..f9870c8850d 100644 --- a/bin/systrace/systrace.c +++ b/bin/systrace/systrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: systrace.c,v 1.22 2002/07/09 20:46:18 provos Exp $ */ +/* $OpenBSD: systrace.c,v 1.23 2002/07/10 07:05:02 provos Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -601,7 +601,7 @@ main(int argc, char **argv) err(1, "attachpid"); if (background) { - if (daemon(0, 0) == -1) + if (daemon(0, 1) == -1) err(1, "daemon"); } } |