summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2021-02-28 01:50:48 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2021-02-28 01:50:48 +0000
commitb3505bff2367f2d78d6f2e657caad2b9117d5e44 (patch)
tree40217e6af9b03908382fa207a7e5016125b788d1 /usr.bin
parent54cd831e918eb239e114c5ceb01fbc89f0f00b0e (diff)
Do not try to reset signal handler for signal 0 in subprocess.
Prevents spurious debug message. ok djm@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/misc.c b/usr.bin/ssh/misc.c
index 5867641706b..88dc5f4594c 100644
--- a/usr.bin/ssh/misc.c
+++ b/usr.bin/ssh/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.161 2021/02/15 20:36:35 markus Exp $ */
+/* $OpenBSD: misc.c,v 1.162 2021/02/28 01:50:47 dtucker Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
* Copyright (c) 2005-2020 Damien Miller. All rights reserved.
@@ -2503,7 +2503,7 @@ subprocess(const char *tag, const char *command,
child_set_env(&env, &nenv, "LANG", cp);
}
- for (i = 0; i < NSIG; i++)
+ for (i = 1; i < NSIG; i++)
ssh_signal(i, SIG_DFL);
if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1) {