commit | ab16ef4152914d44ce6f76e48167d26d22f66a06 | [log] [tgz] |
---|---|---|
author | Damien Miller <djm@mindrot.org> | Tue Jan 28 15:08:12 2014 +1100 |
committer | Damien Miller <djm@mindrot.org> | Tue Jan 28 15:08:12 2014 +1100 |
tree | 2d118113334435406060196b509b9ccf1b6d398a | |
parent | ab0394905884dc6e58c3721211c6b38fb8fc2ca8 [diff] [blame] |
- (djm) [sshd.c] Use kill(0, ...) instead of killpg(0, ...); the latter being specified to have undefined behaviour in SUSv3; ok dtucker
diff --git a/sshd.c b/sshd.c index a5d4218..25380c9 100644 --- a/sshd.c +++ b/sshd.c
@@ -372,7 +372,7 @@ */ if (getpgid(0) == getpid()) { signal(SIGTERM, SIG_IGN); - killpg(0, SIGTERM); + kill(0, SIGTERM); } /* Log error and exit. */