comparison src/emacs.c @ 3826:647bef18618f

Changes for Irix 4.0, tested this time: * s/irix4-0.h: Get rid of our fake definitions for setpgrp and getpgrp. * callproc.c (Fcall_process): Go ahead and use the USG calling convention for setpgrp. * ymakefile (pre-crt0.o): Add rule for this. Perhaps it will help separate-source-directory compilation. * emacs.c (shut_down_emacs): Some USG systems #define EMACS_HAVE_TTY_PGRP; call getpgrp as appropriate for such systems. * sysdep.c (sys_suspend): Call getpgrp as appropriate for USG and non-USG. * process.c [IRIX] (create_process): Don't put child in process group zero before opening the tty; Irix is like USG in this regard.
author Jim Blandy <jimb@redhat.com>
date Fri, 18 Jun 1993 23:33:20 +0000
parents 13592aebe35e
children 85652925d5b8
comparison
equal deleted inserted replaced
3825:ae1462a1a8d4 3826:647bef18618f
679 Lisp_Object stuff; 679 Lisp_Object stuff;
680 { 680 {
681 /* If we are controlling the terminal, reset terminal modes */ 681 /* If we are controlling the terminal, reset terminal modes */
682 #ifdef EMACS_HAVE_TTY_PGRP 682 #ifdef EMACS_HAVE_TTY_PGRP
683 { 683 {
684 #ifdef USG
685 int pgrp = getpgrp ();
686 #else
687 int pgrp = getpgrp (0);
688 #endif
684 int tpgrp; 689 int tpgrp;
685 if (EMACS_GET_TTY_PGRP (0, &tpgrp) != -1 690 if (EMACS_GET_TTY_PGRP (0, &tpgrp) != -1
686 && tpgrp == getpgrp (0)) 691 && tpgrp == pgrp)
687 { 692 {
688 fflush (stdout); 693 fflush (stdout);
689 reset_sys_modes (); 694 reset_sys_modes ();
690 if (sig && sig != SIGTERM) 695 if (sig && sig != SIGTERM)
691 fprintf (stderr, "Fatal error (%d).", sig); 696 fprintf (stderr, "Fatal error (%d).", sig);