mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 00:04:30 +02:00
upstream: keep ignoring HUP after fork+exec; ok djm
OpenBSD-Commit-ID: 7679985a84ee5ceb09839905bb6f3ddd568749a2
This commit is contained in:
parent
8af4a74369
commit
cd119a5ec2
3
sshd.c
3
sshd.c
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: sshd.c,v 1.558 2020/07/03 10:10:17 markus Exp $ */
|
/* $OpenBSD: sshd.c,v 1.559 2020/07/03 10:11:33 markus Exp $ */
|
||||||
/*
|
/*
|
||||||
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
||||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||||
@ -2108,6 +2108,7 @@ main(int ac, char **av)
|
|||||||
dup2(config_s[1], REEXEC_CONFIG_PASS_FD);
|
dup2(config_s[1], REEXEC_CONFIG_PASS_FD);
|
||||||
close(config_s[1]);
|
close(config_s[1]);
|
||||||
|
|
||||||
|
ssh_signal(SIGHUP, SIG_IGN); /* avoid reset to SIG_DFL */
|
||||||
execv(rexec_argv[0], rexec_argv);
|
execv(rexec_argv[0], rexec_argv);
|
||||||
|
|
||||||
/* Reexec has failed, fall back and continue */
|
/* Reexec has failed, fall back and continue */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user