summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordjm <djm>2014-01-28 04:08:12 +0000
committerdjm <djm>2014-01-28 04:08:12 +0000
commitb57c941b7707e087f22ca7d23042ac2050b5af60 (patch)
treebab0a635fe0c204ed86ec6f92cb69c4c6fa22824
parentef2d5ba0c3fa1749f45130cb752dce498c2e68c9 (diff)
downloadopenssh-b57c941b7707e087f22ca7d23042ac2050b5af60.tar.gz
- (djm) [sshd.c] Use kill(0, ...) instead of killpg(0, ...); the
latter being specified to have undefined behaviour in SUSv3; ok dtucker
-rw-r--r--ChangeLog3
-rw-r--r--sshd.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a2be7f8b..549db120 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,9 @@
20140128
- (djm) [configure.ac] Search for inet_ntop in libnsl and libresovl;
ok dtucker
+ - (djm) [sshd.c] Use kill(0, ...) instead of killpg(0, ...); the
+ latter being specified to have undefined behaviour in SUSv3;
+ ok dtucker
20140127
- (dtucker) [Makefile.in] Remove trailing backslash which some make
diff --git a/sshd.c b/sshd.c
index a5d4218b..25380c91 100644
--- a/sshd.c
+++ b/sshd.c
@@ -372,7 +372,7 @@ grace_alarm_handler(int sig)
*/
if (getpgid(0) == getpid()) {
signal(SIGTERM, SIG_IGN);
- killpg(0, SIGTERM);
+ kill(0, SIGTERM);
}
/* Log error and exit. */