mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-09-25 19:08:56 +02:00
upstream: suppress "Connection closed" message when in quiet mode
OpenBSD-Commit-ID: 8a3ab7176764da55f60bfacfeae9b82d84e3908f
This commit is contained in:
parent
845ceecea2
commit
8c7c69d323
3
sftp.c
3
sftp.c
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: sftp.c,v 1.224 2022/12/16 06:52:48 jmc Exp $ */
|
/* $OpenBSD: sftp.c,v 1.225 2023/01/05 05:49:13 djm Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
|
* Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
|
||||||
*
|
*
|
||||||
@ -275,6 +275,7 @@ sigchld_handler(int sig)
|
|||||||
while ((pid = waitpid(sshpid, NULL, WNOHANG)) == -1 && errno == EINTR)
|
while ((pid = waitpid(sshpid, NULL, WNOHANG)) == -1 && errno == EINTR)
|
||||||
continue;
|
continue;
|
||||||
if (pid == sshpid) {
|
if (pid == sshpid) {
|
||||||
|
if (!quiet)
|
||||||
(void)write(STDERR_FILENO, msg, sizeof(msg) - 1);
|
(void)write(STDERR_FILENO, msg, sizeof(msg) - 1);
|
||||||
sshpid = -1;
|
sshpid = -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user