X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=daemon.git;a=blobdiff_plain;f=daemon.c;fp=daemon.c;h=35b7269dbd17993bafcbe51a2e2c44dacc450e6c;hp=5b769dd49863cee1d56c120217edf75d0e870720;hb=89ddb19c0a115febfbaaa51e68a1fb2ca879a456;hpb=9c6b9ad6e19924196d66bba74bd87bc91ebf1fef diff --git a/daemon.c b/daemon.c index 5b769dd..35b7269 100644 --- a/daemon.c +++ b/daemon.c @@ -30,6 +30,7 @@ #include "config.h" #include "pidfile.h" +#include "getprogname.h" #include @@ -51,6 +52,8 @@ main(int argc, char *argv[]) const char *pidfile, *user; pid_t otherpid; + setprogname(argv[0]); + nochdir = noclose = 1; pidfile = user = NULL; while ((ch = getopt(argc, argv, "-cfp:u:")) != -1) {