X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unix%2Fuxpty.c;h=708e82d6be224bb354a911dc78693db7441f81cd;hb=90e7bf4228fa74fda1c65cb2597c9d964329f702;hp=96b64e8d2b647dcbd86272adf2e47a643830935d;hpb=6ee6a4d37926062f5b610de4cef2a6ce4fe63345;p=PuTTY.git diff --git a/unix/uxpty.c b/unix/uxpty.c index 96b64e8d..708e82d6 100644 --- a/unix/uxpty.c +++ b/unix/uxpty.c @@ -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);