diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2014-01-29 00:19:27 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2014-01-29 00:19:27 +0000 |
commit | 4278f9b9b877d7386335bfe8d79889cc987d84b8 (patch) | |
tree | ebe3bb6fd0665d05b2341b7e2562b756735bb626 /usr.bin | |
parent | cdfe5cb574bc62282827ec322e684a6496194cae (diff) |
use kill(0, ...) instead of killpg(0, ...); on most operating systems
they are equivalent, but SUSv2 describes the latter as having undefined
behaviour; from portable; ok dtucker
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/sshd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c index 1ce0b13b117..a07cf85d372 100644 --- a/usr.bin/ssh/sshd.c +++ b/usr.bin/ssh/sshd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshd.c,v 1.415 2014/01/27 19:18:54 markus Exp $ */ +/* $OpenBSD: sshd.c,v 1.416 2014/01/29 00:19:26 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -351,7 +351,7 @@ grace_alarm_handler(int sig) */ if (getpgid(0) == getpid()) { signal(SIGTERM, SIG_IGN); - killpg(0, SIGTERM); + kill(0, SIGTERM); } /* Log error and exit. */ |