X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Faccesslog.c;h=02e5f1ad1a2e3149553f88ad00c337ebc39129c8;hb=3a0ec493b369268f7bb2dc02a78d6a2ffb41f633;hp=5b0c7081152bb0abda657efc0db3eb7cf7a73cc6;hpb=ca170d77b595e63bbbaba28ace23cc88e855c41a;p=ashd.git diff --git a/src/accesslog.c b/src/accesslog.c index 5b0c708..02e5f1a 100644 --- a/src/accesslog.c +++ b/src/accesslog.c @@ -273,6 +273,7 @@ static void reopenlog(void) static void usage(FILE *out) { fprintf(out, "usage: accesslog [-hFaL] [-f FORMAT] [-p PIDFILE] OUTFILE CHILD [ARGS...]\n"); + fprintf(out, " accesslog -P LOGFILE\n"); } int main(int argc, char **argv) @@ -341,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);