# HG changeset patch # User Jim Blandy # Date 740293497 0 # Node ID 13592aebe35e4602202c746bf4b8ddd488494306 # Parent 41923469aefa69e0ccc037af420a838014cfb53a Changes for correct pgrp behavior; approach suggested by Bob Glickstein : * m/iris4d.h (LIB_STANDARD): Do list -lbsd here. * s/irix4-0.h (getpgrp, setpgrp): #define these to call BSDgetpgrp and BSDsetpgrp. (GETPGRP_NO_ARG): Don't #define this. * emacs.c (main): Don't test GETPGRP_NO_ARG. * sysdep.c (sys_suspend): Don't test GETPGRP_NO_ARG. diff -r 41923469aefa -r 13592aebe35e src/emacs.c --- a/src/emacs.c Thu Jun 17 05:03:45 1993 +0000 +++ b/src/emacs.c Thu Jun 17 05:04:57 1993 +0000 @@ -300,11 +300,7 @@ #ifdef BSD { -#ifdef GETPGRP_NO_ARG - inherited_pgroup = getpgrp (); -#else /* THISSENTENCE_NO_VERB */ inherited_pgroup = getpgrp (0); -#endif setpgrp (0, getpid ()); } #endif @@ -687,11 +683,7 @@ { int tpgrp; if (EMACS_GET_TTY_PGRP (0, &tpgrp) != -1 -#ifdef GETPGRP_NO_ARG - && tpgrp == getpgrp ()) -#else && tpgrp == getpgrp (0)) -#endif { fflush (stdout); reset_sys_modes (); diff -r 41923469aefa -r 13592aebe35e src/s/irix4-0.h --- a/src/s/irix4-0.h Thu Jun 17 05:03:45 1993 +0000 +++ b/src/s/irix4-0.h Thu Jun 17 05:04:57 1993 +0000 @@ -3,8 +3,6 @@ #define USG5_3 #define IRIX4 -#define USE_IRIX_BSDPGRP - #define HAVE_ALLOCA #ifndef NOT_C_CODE #include @@ -52,6 +50,10 @@ strcpy (pty_name, name); \ } +/* Use the BSD versions of the getpgrp and setpgrp functions. */ +#define setpgrp(pid, pgrp) BSDsetpgrp((pid), (pgrp)) +#define getpgrp(pid) BSDgetpgrp(pid) + /* jpff@maths.bath.ac.uk reports `struct exception' is not defined on this system, so inhibit use of matherr. */ #define NO_MATHERR