]> git.eshelyaron.com Git - emacs.git/commitdiff
Include systty.h.
authorRichard M. Stallman <rms@gnu.org>
Sat, 25 Dec 1993 01:45:14 +0000 (01:45 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 25 Dec 1993 01:45:14 +0000 (01:45 +0000)
(child_setup): Use EMACS_SET_TTY_PGRP.

src/callproc.c

index d46d8a3249818f09b7f8257cc08d35c5cb4fa292..36f0d866ee34254400acf007a06d51fde5a95c54 100644 (file)
@@ -55,6 +55,7 @@ extern char *sys_errlist[];
 #include <paths.h>
 #include "process.h"
 #include "syssignal.h"
+#include "systty.h"
 
 #ifdef VMS
 extern noshare char **environ;
@@ -537,7 +538,8 @@ child_setup (in, out, err, new_argv, set_pgrp, current_dir)
 #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;