#include "config.h"
#include "pidfile.h"
+#include "getprogname.h"
#include <sys/param.h>
const char *pidfile, *user;
pid_t otherpid;
+ setprogname(argv[0]);
+
nochdir = noclose = 1;
pidfile = user = NULL;
- while ((ch = getopt(argc, argv, "-cfp:u:")) != -1) {
+ while ((ch = getopt(argc, argv, "cfp:u:")) != -1) {
switch (ch) {
case 'c':
nochdir = 0;