Allow restarting on SIGHUP when the full path was not given as argv[0].

We do have /proc/curproc/file :)
This commit is contained in:
Brian Feldman 2000-07-04 06:43:26 +00:00
parent 22e5a6234e
commit c8ef594c0f

View File

@ -206,6 +206,7 @@ sighup_restart()
log("Received SIGHUP; restarting.");
close_listen_socks();
execv(saved_argv[0], saved_argv);
execv("/proc/curproc/file", saved_argv);
log("RESTART FAILED: av0='%s', error: %s.", av0, strerror(errno));
exit(1);
}