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:
parent
22e5a6234e
commit
c8ef594c0f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user