mirror of
https://repo.or.cz/socat.git
synced 2024-12-22 23:42:34 +00:00
Debian bug 531078: socat execs children with SIGCHLD ignored - fixed
This commit is contained in:
parent
30a3ec3baa
commit
1cf3a1c4c9
3 changed files with 9 additions and 3 deletions
4
CHANGES
4
CHANGES
|
@ -1,4 +1,8 @@
|
||||||
|
|
||||||
|
corrections:
|
||||||
|
Debian bug 531078: socat execs children with SIGCHLD ignored; corrected
|
||||||
|
to default. Thanks to Martin Dorey for reporting this bug.
|
||||||
|
|
||||||
####################### V 1.7.1.1:
|
####################### V 1.7.1.1:
|
||||||
|
|
||||||
corrections:
|
corrections:
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
"1.7.1.1"
|
"1.7.1.1+subsigchld"
|
||||||
|
|
|
@ -414,8 +414,10 @@ int _xioopen_foxec(int xioflags, /* XIO_RDONLY etc. */
|
||||||
gid_t group;
|
gid_t group;
|
||||||
|
|
||||||
if (withfork) {
|
if (withfork) {
|
||||||
if (Signal(SIGCHLD, SIG_IGN) == SIG_ERR) {
|
/* The child should have default handling for SIGCHLD. */
|
||||||
Warn1("signal(SIGCHLD, SIG_IGN): %s", strerror(errno));
|
/* In particular, it's not defined whether ignoring SIGCHLD is inheritable. */
|
||||||
|
if (Signal(SIGCHLD, SIG_DFL) == SIG_ERR) {
|
||||||
|
Warn1("signal(SIGCHLD, SIG_DFL): %s", strerror(errno));
|
||||||
}
|
}
|
||||||
|
|
||||||
#if HAVE_PTY
|
#if HAVE_PTY
|
||||||
|
|
Loading…
Reference in a new issue