Get full path of argv[0] before we change directories. Make sure process names are long path names. Cleaned up initialisation a bit.
diff --git a/misc/options.c b/misc/options.c index d260734..9c1b576 100644 --- a/misc/options.c +++ b/misc/options.c
@@ -40,7 +40,8 @@ NULL /* Alternate config file name */ }; -const char *argv0; +const char *argv0; /* the original argv[0] */ +const char *full_argv0; /* the full path of argv[0] (if known) */ static char *inherit_str; /* options to pass to child processes */