summaryrefslogtreecommitdiffstats
path: root/misc.c
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2021-02-28 02:50:47 +0100
committerDarren Tucker <dtucker@dtucker.net>2021-02-28 03:01:20 +0100
commite774bac35933e71f924f4301786e7fb5bbe1422f (patch)
treef4ec10f4522e8f927e54e5c91c256ad0bb19ee5f /misc.c
parentupstream: fix alphabetic ordering of options; spotted by Iain Morgan (diff)
downloadopenssh-e774bac35933e71f924f4301786e7fb5bbe1422f.tar.xz
openssh-e774bac35933e71f924f4301786e7fb5bbe1422f.zip
upstream: Do not try to reset signal handler for signal 0 in
subprocess. Prevents spurious debug message. ok djm@ OpenBSD-Commit-ID: 7f9785e292dcf304457566ad4637effd27ad1d46
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc.c b/misc.c
index f333e1abd..d988ce3b9 100644
--- a/misc.c
+++ b/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.
@@ -2604,7 +2604,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) {