(create_process) [OSF1]: Use setpgid, not setpgrp.
authorRichard M. Stallman <rms@gnu.org>
Thu, 10 Nov 1994 08:12:48 +0000 (08:12 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 10 Nov 1994 08:12:48 +0000 (08:12 +0000)
src/process.c

index 7ffe74a..b580b11 100644 (file)
@@ -1403,7 +1403,11 @@ 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 */