changeset 3801:13592aebe35e

Changes for correct pgrp behavior; approach suggested by Bob Glickstein <bobg@zindigo.z-code.com>: * 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.
author Jim Blandy <jimb@redhat.com>
date Thu, 17 Jun 1993 05:04:57 +0000
parents 41923469aefa
children 594bc11c67ba
files src/emacs.c src/s/irix4-0.h
diffstat 2 files changed, 4 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- 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 ();
--- 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 <alloca.h>
@@ -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