Article View: gnu.emacs.bug
Article #87937suspend-emacs under tcsh causes Emacs to exit
From: Jonathan I. Kamens
Date: Sat, 13 Aug 1994 03:24
Date: Sat, 13 Aug 1994 03:24
59 lines
2521 bytes
2521 bytes
In GNU Emacs 19.25.1 of Thu Aug 11 1994 on gza-client1 (sparc-sun-sunos4.1.3)
When I'm running Emacs in a tty under OSU tcsh 6.02.00 and I
invoke suspend-emacs, instead of suspending, something (either Emacs
or the shell, probably the latter prints "Killed" and emacs goes away.
I don't know whether the fix below is correct, because I don't
quite understand why this is happening, but it works.
Fri Aug 12 15:51:34 1994 Jonathan I. Kamens (jik@gza-client1)
* sysdep.c (sys_suspend): Use SIGSTOP instead of SIGTSTP when
suspending emacs. For some reason, when running emacs under
tcsh, using SIGTSTP causes it to get killed.
*** sysdep.c 1994/08/12 15:02:20 1.1
--- sysdep.c 1994/08/12 15:50:40
***************
*** 610,620 ****
}
return -1;
#else
! #if defined(SIGTSTP) && !defined(MSDOS)
{
int pgrp = EMACS_GETPGRP (0);
! EMACS_KILLPG (pgrp, SIGTSTP);
}
#else /* No SIGTSTP */
--- 610,620 ----
}
return -1;
#else
! #if defined(SIGSTOP) && !defined(MSDOS)
{
int pgrp = EMACS_GETPGRP (0);
! EMACS_KILLPG (pgrp, SIGSTOP);
}
#else /* No SIGTSTP */
***************
*** 622,628 ****
ptrace (0, 0, 0, 0); /* set for ptrace - caught by csh */
kill (getpid (), SIGQUIT);
! #else /* No SIGTSTP or USG_JOBCTRL */
/* On a system where suspending is not implemented,
instead fork a subshell and let it talk directly to the terminal
--- 622,628 ----
ptrace (0, 0, 0, 0); /* set for ptrace - caught by csh */
kill (getpid (), SIGQUIT);
! #else /* No SIGSTOP or USG_JOBCTRL */
/* On a system where suspending is not implemented,
instead fork a subshell and let it talk directly to the terminal
Technical Details
Message-ID:
<199408121555.LAA11785@gza-client1.aktis.com>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!primenet!netnews.asu.edu !asuvax!cs.utexas.edu!swrinde!howland.reston.ans.net!math.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!cam.ov.COM!jikShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,91e4896cc787a89a,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1994-08-13 06:21:38 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!primenet!netnews.asu.edu !asuvax!cs.utexas.edu!swrinde!howland.reston.ans.net!math.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!cam.ov.COM!jik From: jik@cam.ov.COM (Jonathan I. Kamens) Newsgroups: gnu.emacs.bug Subject: suspend-emacs under tcsh causes Emacs to exit Date: 12 Aug 1994 23:24:31 -0400 Organization: GNUs Not Usenet Lines: 60 Sender: daemon@cis.ohio-state.edu Approved: bug-gnu-emacs@prep.ai.mit.edu Distribution: gnu Message-ID: <199408121555.LAA11785@gza-client1.aktis.com>