mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-09 23:28:06 -05:00
When I turned fcntls into noncloexecs in r9940, I missed one.
[originally from svn r9949] [r9940 == b4268722196a3d93183252584b86cbb719187a38]
This commit is contained in:
parent
08d46fca51
commit
f1d6fa4712
@ -800,7 +800,7 @@ static const char *pty_init(void *frontend, void **backend_handle, Conf *conf,
|
||||
}
|
||||
|
||||
close(pty->master_fd);
|
||||
fcntl(slavefd, F_SETFD, 0); /* don't close on exec */
|
||||
noncloexec(slavefd);
|
||||
dup2(slavefd, 0);
|
||||
dup2(slavefd, 1);
|
||||
dup2(slavefd, 2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user