diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2004-02-13 19:01:58 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2004-02-13 19:01:58 +0000 |
commit | c3cefcd423e032e2d946ffd7bc220c2d1d105644 (patch) | |
tree | e1cc5c3c15495cdd5304bfbf2c6656b222c6ac6e /sbin/pflogd/pflogd.c | |
parent | 3787401890ceda601ff7fd25496550030e3d2dd5 (diff) |
cleanup signal handling; close descriptors.
ok avsm@ millert@ canacar@
Diffstat (limited to 'sbin/pflogd/pflogd.c')
-rw-r--r-- | sbin/pflogd/pflogd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/pflogd/pflogd.c b/sbin/pflogd/pflogd.c index b3fa13af13a..7e19ae66ebd 100644 --- a/sbin/pflogd/pflogd.c +++ b/sbin/pflogd/pflogd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pflogd.c,v 1.26 2004/01/16 10:45:49 jmc Exp $ */ +/* $OpenBSD: pflogd.c,v 1.27 2004/02/13 19:01:57 otto Exp $ */ /* * Copyright (c) 2001 Theo de Raadt @@ -503,6 +503,8 @@ main(int argc, char **argv) int ch, np, Xflag = 0; pcap_handler phandler = dump_packet; + closefrom(STDERR_FILENO + 1); + while ((ch = getopt(argc, argv, "Dxd:s:f:")) != -1) { switch (ch) { case 'D': |