mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-02 12:20:51 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62567
@ -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