1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-11 06:22:58 +00:00

exec:...,pty did not kill child process under some circumstances

This commit is contained in:
Gerhard Rieger 2008-01-29 22:29:28 +01:00
parent 79b6e800c6
commit 26134dff53
4 changed files with 60 additions and 3 deletions

View file

@ -1,5 +1,5 @@
/* source: xio-progcall.c */
/* Copyright Gerhard Rieger 2001-2007 */
/* Copyright Gerhard Rieger 2001-2008 */
/* Published under the GNU General Public License V.2, see file COPYING */
/* this file contains common code dealing with program calls (exec, system) */
@ -283,7 +283,8 @@ int _xioopen_foxec(int xioflags, /* XIO_RDONLY etc. */
return STAT_RETRYLATER;
}
applyopts_cloexec(ptyfd, popts);/*!*/
if (fd->howtoend = END_UNSPEC) {
/* exec:...,pty did not kill child process under some circumstances */
if (fd->howtoend == END_UNSPEC) {
fd->howtoend = END_CLOSE_KILL;
}