diff options
author | 2014-01-29 00:19:26 +0000 | |
---|---|---|
committer | 2014-01-29 00:19:26 +0000 | |
commit | 5fea05f025586e001a804504620b9178d02ec987 (patch) | |
tree | 6ef5ed1a35fac64e9c8d65a3ce73cc1aa8f62b9e | |
parent | Fix missing argument, stupid last minute changes... (diff) | |
download | wireguard-openbsd-5fea05f025586e001a804504620b9178d02ec987.tar.xz wireguard-openbsd-5fea05f025586e001a804504620b9178d02ec987.zip |
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
-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. */ |