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