diff options
author | green <green@FreeBSD.org> | 2000-07-04 06:43:26 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 2000-07-04 06:43:26 +0000 |
commit | be6e69fbed7c32d6f6b825932f4a9a1c6d414c8a (patch) | |
tree | b635ec9f5ba1a42b8423ca1abace05ec0cdd31f1 | |
parent | 5e6b00a0a70c6df314384e61f6db7131308e1add (diff) | |
download | FreeBSD-src-be6e69fbed7c32d6f6b825932f4a9a1c6d414c8a.zip FreeBSD-src-be6e69fbed7c32d6f6b825932f4a9a1c6d414c8a.tar.gz |
Allow restarting on SIGHUP when the full path was not given as argv[0].
We do have /proc/curproc/file :)
-rw-r--r-- | crypto/openssh/sshd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/openssh/sshd.c b/crypto/openssh/sshd.c index 177c394..54306ef 100644 --- a/crypto/openssh/sshd.c +++ b/crypto/openssh/sshd.c @@ -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); } |