X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unix%2Fuxpty.c;h=2e165cf2e9451e8d71f2d9dddeeac10197378eed;hb=46c00b0f381f48a9992e43e014e104015952e9da;hp=96b64e8d2b647dcbd86272adf2e47a643830935d;hpb=6ee6a4d37926062f5b610de4cef2a6ce4fe63345;p=PuTTY.git diff --git a/unix/uxpty.c b/unix/uxpty.c index 96b64e8d..2e165cf2 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); @@ -1085,5 +1085,7 @@ Backend pty_backend = { pty_provide_logctx, pty_unthrottle, pty_cfg_info, + "pty", + -1, 1 };