aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1993-06-16 23:49:54 +0000
committerJim Blandy1993-06-16 23:49:54 +0000
commite1c9dcf88387efb52491db9fae1ba780fc6b2c81 (patch)
treebd8e72fa7f4172274c6822ba4210aa3295f23c06 /src
parent39b649dd44b673aa5aea845ebfd7c453cd9fe508 (diff)
downloademacs-e1c9dcf88387efb52491db9fae1ba780fc6b2c81.tar.gz
emacs-e1c9dcf88387efb52491db9fae1ba780fc6b2c81.zip
Changes for correct pgrp behavior from Bob Glickstein
<bobg@zindigo.z-code.com>: * m/iris4d.h (LIB_STANDARD): Do include -lbsd here. * s/irix4-0.h (USE_IRIX_BSDPGRP): #define this. (GETPGRP_NO_ARG): Don't #define this. * callproc.c [USE_IRIX_BSDPGRP] (Fcall_process): Call BSDsetpgrp instead of plain setpgrp. [USE_IRIX_BSDPGRP] (child_setup): Same. * emacs.c [GETPGRP_NO_ARG] (main, shut_down_emacs): CPP clauses deleted; this flag isn't needed anymore. [USE_IRIX_BSDPGRP] (main, shut_down_emacs): Call BSDsetpgrp and BSDgetpgrp instead of plain setpgrp and getpgrp. * process.c [USE_IRIX_BSDPGRP] (create_process): Don't call setpgrp before opening the tty. Call BSDsetpgrp instead of setpgrp, after opening the tty. * sysdep.c [USE_IRIX_BSDPGRP] (sys_suspend, narrow_foreground_group, widen_foreground_group): Call BSDgetpgrp and BSDsetpgrp instead of getpgrp and setpgrp.
Diffstat (limited to 'src')
-rw-r--r--src/m/iris4d.h2
-rw-r--r--src/s/irix4-0.h5
2 files changed, 3 insertions, 4 deletions
diff --git a/src/m/iris4d.h b/src/m/iris4d.h
index bd374367375..04b85467b7f 100644
--- a/src/m/iris4d.h
+++ b/src/m/iris4d.h
@@ -143,7 +143,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
143 143
144/* When you *do* link with -lbsd, you *still* get System V getpgrp, unless: 144/* When you *do* link with -lbsd, you *still* get System V getpgrp, unless:
145 you define _BSD_COMPAT, -or- you call `BSDgetpgrp' explicitly. 145 you define _BSD_COMPAT, -or- you call `BSDgetpgrp' explicitly.
146 Emacs does neither, so it gets SysV getpgrp which wants no arguments. */ 146 Emacs does the latter. */
147 147
148#ifdef HAVE_CRTN 148#ifdef HAVE_CRTN
149/* Must define START-FILES so that the linker can find /usr/lib/crt0.o. */ 149/* Must define START-FILES so that the linker can find /usr/lib/crt0.o. */
diff --git a/src/s/irix4-0.h b/src/s/irix4-0.h
index 05ad1d21552..70c255044db 100644
--- a/src/s/irix4-0.h
+++ b/src/s/irix4-0.h
@@ -3,6 +3,8 @@
3#define USG5_3 3#define USG5_3
4#define IRIX4 4#define IRIX4
5 5
6#define USE_IRIX_BSDPGRP
7
6#define HAVE_ALLOCA 8#define HAVE_ALLOCA
7#ifndef NOT_C_CODE 9#ifndef NOT_C_CODE
8#include <alloca.h> 10#include <alloca.h>
@@ -53,6 +55,3 @@
53/* jpff@maths.bath.ac.uk reports `struct exception' is not defined 55/* jpff@maths.bath.ac.uk reports `struct exception' is not defined
54 on this system, so inhibit use of matherr. */ 56 on this system, so inhibit use of matherr. */
55#define NO_MATHERR 57#define NO_MATHERR
56
57/* Info from simon@lia.di.epfl.ch (Simon Leinen) suggests this is needed. */
58#define GETPGRP_NO_ARG