mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-16 03:53:01 -05:00
Ahem; other half of r7232...
[originally from svn r7233] [r7232 == 6ee6a4d37926062f5b610de4cef2a6ce4fe63345]
This commit is contained in:
parent
6ee6a4d379
commit
9c35141162
@ -778,7 +778,7 @@ static const char *pty_init(void *frontend, void **backend_handle, Config *cfg,
|
|||||||
ioctl(0, TIOCSCTTY, 1);
|
ioctl(0, TIOCSCTTY, 1);
|
||||||
#endif
|
#endif
|
||||||
pgrp = getpid();
|
pgrp = getpid();
|
||||||
tcsetpgrp(slavefd, pgrp);
|
tcsetpgrp(0, pgrp);
|
||||||
setpgid(pgrp, pgrp);
|
setpgid(pgrp, pgrp);
|
||||||
close(open(pty->name, O_WRONLY, 0));
|
close(open(pty->name, O_WRONLY, 0));
|
||||||
setpgid(pgrp, pgrp);
|
setpgid(pgrp, pgrp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user