From: Richard M. Stallman Date: Sat, 25 Dec 1993 01:45:14 +0000 (+0000) Subject: Include systty.h. X-Git-Tag: emacs-19.34~10503 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a129418f949cfb202c879274db8f4202d76fefd6;p=emacs.git Include systty.h. (child_setup): Use EMACS_SET_TTY_PGRP. --- diff --git a/src/callproc.c b/src/callproc.c index d46d8a32498..36f0d866ee3 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -55,6 +55,7 @@ extern char *sys_errlist[]; #include #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;