aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c8
-rw-r--r--src/s/irix4-0.h6
2 files changed, 4 insertions, 10 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 3e18c398f13..c38811f117d 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -300,11 +300,7 @@ main (argc, argv, envp)
300 300
301#ifdef BSD 301#ifdef BSD
302 { 302 {
303#ifdef GETPGRP_NO_ARG
304 inherited_pgroup = getpgrp ();
305#else /* THISSENTENCE_NO_VERB */
306 inherited_pgroup = getpgrp (0); 303 inherited_pgroup = getpgrp (0);
307#endif
308 setpgrp (0, getpid ()); 304 setpgrp (0, getpid ());
309 } 305 }
310#endif 306#endif
@@ -687,11 +683,7 @@ shut_down_emacs (sig, no_x, stuff)
687 { 683 {
688 int tpgrp; 684 int tpgrp;
689 if (EMACS_GET_TTY_PGRP (0, &tpgrp) != -1 685 if (EMACS_GET_TTY_PGRP (0, &tpgrp) != -1
690#ifdef GETPGRP_NO_ARG
691 && tpgrp == getpgrp ())
692#else
693 && tpgrp == getpgrp (0)) 686 && tpgrp == getpgrp (0))
694#endif
695 { 687 {
696 fflush (stdout); 688 fflush (stdout);
697 reset_sys_modes (); 689 reset_sys_modes ();
diff --git a/src/s/irix4-0.h b/src/s/irix4-0.h
index 70c255044db..e2dbb37c37c 100644
--- a/src/s/irix4-0.h
+++ b/src/s/irix4-0.h
@@ -3,8 +3,6 @@
3#define USG5_3 3#define USG5_3
4#define IRIX4 4#define IRIX4
5 5
6#define USE_IRIX_BSDPGRP
7
8#define HAVE_ALLOCA 6#define HAVE_ALLOCA
9#ifndef NOT_C_CODE 7#ifndef NOT_C_CODE
10#include <alloca.h> 8#include <alloca.h>
@@ -52,6 +50,10 @@
52 strcpy (pty_name, name); \ 50 strcpy (pty_name, name); \
53} 51}
54 52
53/* Use the BSD versions of the getpgrp and setpgrp functions. */
54#define setpgrp(pid, pgrp) BSDsetpgrp((pid), (pgrp))
55#define getpgrp(pid) BSDgetpgrp(pid)
56
55/* jpff@maths.bath.ac.uk reports `struct exception' is not defined 57/* jpff@maths.bath.ac.uk reports `struct exception' is not defined
56 on this system, so inhibit use of matherr. */ 58 on this system, so inhibit use of matherr. */
57#define NO_MATHERR 59#define NO_MATHERR