summaryrefslogtreecommitdiff
path: root/src/emacs.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1993-06-17 05:04:57 +0000
committerJim Blandy <jimb@redhat.com>1993-06-17 05:04:57 +0000
commit856a73b38b584fe962f413176ab310cd2b7689a9 (patch)
tree037d457e4d5017d7021a61e0abae3083eee03e20 /src/emacs.c
parentafd0d2375ab44b40a81c7e509ebbddba688dea2e (diff)
downloademacs-856a73b38b584fe962f413176ab310cd2b7689a9.tar.gz
emacs-856a73b38b584fe962f413176ab310cd2b7689a9.tar.bz2
emacs-856a73b38b584fe962f413176ab310cd2b7689a9.zip
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.
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c8
1 files changed, 0 insertions, 8 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)
#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 @@ shut_down_emacs (sig, no_x, stuff)
{
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 ();