From 1aa64afc30a3c002d391acfac9aeebbaa709f8d6 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 24 Nov 2004 11:42:45 +0000 Subject: [PATCH] I think rjk meant `setpgid', not `setpgrp'. [originally from svn r4897] --- 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);