From ea0716c6d898286350ebbe0036aef981418fe168 Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 24 Nov 2004 11:42:45 +0000 Subject: [PATCH] I think rjk meant `setpgid', not `setpgrp'. git-svn-id: svn://svn.tartarus.org/sgt/putty@4897 cda61777-01e9-0310-a592-d414129be87e --- unix/pty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unix/pty.c b/unix/pty.c index 86e1e410..b621d8be 100644 --- a/unix/pty.c +++ b/unix/pty.c @@ -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); -- 2.11.0