diff options
author | Luiz Otavio O Souza <luiz@netgate.com> | 2016-07-08 14:09:33 -0500 |
---|---|---|
committer | Luiz Otavio O Souza <luiz@netgate.com> | 2016-07-13 14:59:25 -0500 |
commit | 5cddd6024719a79d09703ec1ca518b3389463d53 (patch) | |
tree | 3728491bef7cfccd7d40af6b1f42e75cfbd5ec52 | |
parent | da4686f797ac13fdb51f359fa296d816d77097ff (diff) | |
download | FreeBSD-ports-5cddd6024719a79d09703ec1ca518b3389463d53.zip FreeBSD-ports-5cddd6024719a79d09703ec1ca518b3389463d53.tar.gz |
Close all open file descriptors (with exception of stdin, stdout and stderr) that we can eventually receive.
Submitted by: Harry Coin
Ticket #6494
(cherry picked from commit 66c90586894af6699959532249195d4a37c6f6b8)
-rwxr-xr-x | sysutils/filterlog/Makefile | 2 | ||||
-rw-r--r-- | sysutils/filterlog/files/filterlog.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sysutils/filterlog/Makefile b/sysutils/filterlog/Makefile index a4f3a83..ac1526b 100755 --- a/sysutils/filterlog/Makefile +++ b/sysutils/filterlog/Makefile @@ -1,6 +1,6 @@ PORTNAME= filterlog PORTVERSION= 0.1 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= sysutils MASTER_SITES= # empty DISTFILES= # none diff --git a/sysutils/filterlog/files/filterlog.c b/sysutils/filterlog/files/filterlog.c index 4863027..917169f 100644 --- a/sysutils/filterlog/files/filterlog.c +++ b/sysutils/filterlog/files/filterlog.c @@ -192,6 +192,7 @@ main(int argc, char **argv) exit(-1); } + closefrom(3); if (filterlog_pcap_file == NULL) daemon(0, 0); |