]> andersk Git - openssh.git/blobdiff - pty.c
- (bal) Changed from GNU rx to PCRE on suggestion from djm.
[openssh.git] / pty.c
diff --git a/pty.c b/pty.c
index cbbe5845e046c8f15c6eadc5d22412dd6aa5f052..04004d20f672ec3ab05a88b2363f6bc02b68e40b 100644 (file)
--- a/pty.c
+++ b/pty.c
@@ -242,6 +242,10 @@ pty_make_controlling_tty(int *ttyfd, const char *ttyname)
         */
        ioctl(*ttyfd, TIOCSCTTY, NULL);
 #endif /* TIOCSCTTY */
+#ifdef HAVE_NEWS4
+       if (setpgrp(0,0) < 0)
+               error("SETPGRP %s",strerror(errno));
+#endif /* HAVE_NEWS4 */
 #ifdef USE_VHANGUP
        old = signal(SIGHUP, SIG_IGN);
        vhangup();
This page took 0.067816 seconds and 4 git commands to generate.