mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-10 07:38:06 -05:00
Some hosts don't have TIOCSCTTY. Don't try to use it on them.
Patch from Mike Protts. [originally from svn r6306]
This commit is contained in:
parent
4598889284
commit
e115d1cc90
@ -744,7 +744,9 @@ static const char *pty_init(void *frontend, void **backend_handle, Config *cfg,
|
||||
dup2(slavefd, 1);
|
||||
dup2(slavefd, 2);
|
||||
setsid();
|
||||
#ifdef TIOCSCTTY
|
||||
ioctl(slavefd, TIOCSCTTY, 1);
|
||||
#endif
|
||||
pgrp = getpid();
|
||||
tcsetpgrp(slavefd, pgrp);
|
||||
setpgid(pgrp, pgrp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user