commit | f2bf36c3eb4d969f85ec8aa342e9aecb61cc8bb1 | [log] [tgz] |
---|---|---|
author | Darren Tucker <dtucker@zip.com.au> | Sun Sep 22 19:02:40 2013 +1000 |
committer | Darren Tucker <dtucker@zip.com.au> | Sun Sep 22 19:02:40 2013 +1000 |
tree | 82909c895d0e5a21182e280f4deb9124ac157a25 | |
parent | e90a06ae570fd259a2f5ced873c7f17390f535a5 [diff] [blame] |
- (dtucker) [platform.c platform.h sshd.c] bz#2156: restore Linux oom_adj setting when handling SIGHUP to maintain behaviour over retart. Patch from Matthew Ife.
diff --git a/sshd.c b/sshd.c index 3efe170..7e3b60f 100644 --- a/sshd.c +++ b/sshd.c
@@ -315,6 +315,7 @@ sighup_restart(void) { logit("Received SIGHUP; restarting."); + platform_pre_restart(); close_listen_socks(); close_startup_pipes(); alarm(0); /* alarm timer persists across exec */