diff src/callproc.c @ 5348:f921e3c48dcb

Include systty.h. (child_setup): Use EMACS_SET_TTY_PGRP.
author Richard M. Stallman <rms@gnu.org>
date Sat, 25 Dec 1993 01:45:14 +0000
parents 480731ff8e9a
children 902cd7024cfa
line wrap: on
line diff
--- a/src/callproc.c	Sat Dec 25 01:44:47 1993 +0000
+++ b/src/callproc.c	Sat Dec 25 01:45:14 1993 +0000
@@ -55,6 +55,7 @@
 #include <paths.h>
 #include "process.h"
 #include "syssignal.h"
+#include "systty.h"
 
 #ifdef VMS
 extern noshare char **environ;
@@ -537,7 +538,8 @@
 #else
   setpgrp (pid, pid);
 #endif /* USG */
-  setpgrp_of_tty (pid);
+  /* setpgrp_of_tty is incorrect here; it uses input_fd.  */
+  EMACS_SET_TTY_PGRP (0, &pid);
 
 #ifdef vipc
   something missing here;