1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-12 18:13:50 -05:00

Ahem; other half of r7232...

[originally from svn r7233]
[r7232 == 6ee6a4d37926062f5b610de4cef2a6ce4fe63345]
This commit is contained in:
Simon Tatham 2007-02-05 20:14:17 +00:00
parent 6ee6a4d379
commit 9c35141162

View File

@ -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);