mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +00:00
I think rjk meant setpgid', not
setpgrp'.
[originally from svn r4897]
This commit is contained in:
parent
4f197b872e
commit
1aa64afc30
@ -577,9 +577,9 @@ static const char *pty_init(void *frontend, void **backend_handle, Config *cfg,
|
||||
ioctl(slavefd, TIOCSCTTY, 1);
|
||||
pgrp = getpid();
|
||||
tcsetpgrp(slavefd, pgrp);
|
||||
setpgrp(pgrp, pgrp);
|
||||
setpgid(pgrp, pgrp);
|
||||
close(open(pty_name, O_WRONLY, 0));
|
||||
setpgrp(pgrp, pgrp);
|
||||
setpgid(pgrp, pgrp);
|
||||
/* Close everything _else_, for tidiness. */
|
||||
for (i = 3; i < 1024; i++)
|
||||
close(i);
|
||||
|
Loading…
Reference in New Issue
Block a user