X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=src%2Faccesslog.c;h=02e5f1ad1a2e3149553f88ad00c337ebc39129c8;hp=5aa25743964af97bb4d462af00ed405f05115ce3;hb=470938bdc9149ae9c7befd0cd983f46fcc056192;hpb=0c345c82fe0465b7e92076b90e3132ae3b6eba98 diff --git a/src/accesslog.c b/src/accesslog.c index 5aa2574..02e5f1a 100644 --- a/src/accesslog.c +++ b/src/accesslog.c @@ -342,6 +342,7 @@ int main(int argc, char **argv) } } } + fcntl(fileno(out), F_SETFD, FD_CLOEXEC); if((ch = stdmkchild(argv + optind + 1, NULL, NULL)) < 0) { flog(LOG_ERR, "accesslog: could not fork child: %s", strerror(errno)); exit(1);