diff options
Diffstat (limited to 'net/flow-tools/patches/patch-aj')
-rw-r--r-- | net/flow-tools/patches/patch-aj | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/net/flow-tools/patches/patch-aj b/net/flow-tools/patches/patch-aj new file mode 100644 index 00000000000..25e11a03199 --- /dev/null +++ b/net/flow-tools/patches/patch-aj @@ -0,0 +1,16 @@ +$NetBSD: patch-aj,v 1.1 2003/02/16 23:50:21 seb Exp $ + +--- src/flow-fanout.c.orig Wed Oct 23 18:08:52 2002 ++++ src/flow-fanout.c +@@ -252,8 +252,9 @@ int main(int argc, char **argv) + } + + chdir ("/"); +- umask(0022); +- setsid(); ++ /* umask(0022); */ ++ if (setsid() == -1) ++ fterr_err(1, "setsid()"); + for (n = 0; n < 16; ++n) /* XXX dynamically get NOFILE */ + close (n); + |