summaryrefslogtreecommitdiff
path: root/src/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/process.c b/src/process.c
index 7ffe74ac821..b580b11b665 100644
--- a/src/process.c
+++ b/src/process.c
@@ -1403,8 +1403,12 @@ create_process (process, new_argv, current_dir)
/* In order to get a controlling terminal on some versions
of BSD, it is necessary to put the process in pgrp 0
before it opens the terminal. */
+#ifdef OSF1
+ setpgid (0, 0);
+#else
setpgrp (0, 0);
#endif
+#endif
}
#endif /* TIOCNOTTY */