summaryrefslogtreecommitdiff
path: root/zwgc
diff options
context:
space:
mode:
authorGravatar Richard Basch <probe@mit.edu>1994-08-18 14:33:24 +0000
committerGravatar Richard Basch <probe@mit.edu>1994-08-18 14:33:24 +0000
commit38acb61e5ddf3be6187dfaabf6197fbba56e8054 (patch)
treec8d343a428199760b5a98f32d4b688d2522fe4d8 /zwgc
parentae634e3e62efc26840ea48af414bd50ea201a3be (diff)
Revert back to setting the pgid to the parent pid for Ultrix.
Diffstat (limited to 'zwgc')
-rw-r--r--zwgc/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/zwgc/main.c b/zwgc/main.c
index 4d0fb49..2a66d59 100644
--- a/zwgc/main.c
+++ b/zwgc/main.c
@@ -432,11 +432,12 @@ static void detach()
register int i;
/* to try to get SIGHUP on user logout */
-#ifdef POSIX
+#if defined(POSIX) && !defined(ultrix)
(void) setpgid(0, tcgetpgrp(1));
#else
(void) setpgrp(0, getpgrp(getppid()));
#endif
+
/* fork off and let parent exit... */
if (i = fork()) {
if (i < 0) {