Article View: gnu.emacs.bug
Article #695compile mode sometimes kills wrong process
From: Mark J Neale
Date: Thu, 13 Aug 1992 19:25
Date: Thu, 13 Aug 1992 19:25
53 lines
2894 bytes
2894 bytes
GNU Emacs 18.57.8 of Wed Jul 22 1992 on mmi-dev-1 (berkeley-unix)
I have discovered that sometimes starting a compilation process when
another one is running kills the wrong process. To test this, start a
shell. Then start a compilation process (or grep) which takes a while
to complete. From the shell buffer, start another compilation. You get
a prompt saying there is one already running and do you want to kill
it. Wait for the compilation to complete and then type yes. The shell
then terminates.
To fix this, patch compile.el according to the diffs below.
*** emacs/lisp/compile.el Wed Jan 9 21:57:05 1991
--- work/EMACS/local/lisp/compile.el Thu Aug 13 15:16:18 1992
***************
*** 71,79 ****
(yes-or-no-p "A compilation process is running; kill it? "))
(condition-case ()
(let ((comp-proc compilation-process))
! (interrupt-process comp-proc)
! (sit-for 1)
! (delete-process comp-proc))
(error nil))
(error "Cannot have two compilation processes")))
(setq compilation-process nil)
--- 71,81 ----
(yes-or-no-p "A compilation process is running; kill it? "))
(condition-case ()
(let ((comp-proc compilation-process))
! (if comp-proc
! (progn
! (interrupt-process comp-proc)
! (sit-for 1)
! (delete-process comp-proc))))
(error nil))
(error "Cannot have two compilation processes")))
(setq compilation-process nil)
--
# Mark Neale (mjn@jet.uk)
# ###### ##### Juggling with the parameters of Fusion.
# # #
# ##### # Joint European Torus, Culham Lab. OX14 3EA, UK
# # # # +44 235 465272
##### ###### # Any opinion expressed above is.
--
# Mark Neale (mjn@jet.uk)
# ###### ##### Juggling with the parameters of Fusion.
# # #
# ##### # Joint European Torus, Culham Lab. OX14 3EA, UK
# # # # +44 235 465272
##### ###### # Any opinion expressed above is.
- Disclaimer: Please note that the above is a personal view and should not
be construed as an official comment from the JET project.
Technical Details
Message-ID:
<MJN.92Aug13152510@mmi-dev-1.jet.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!ames!elroy.jpl.nasa.gov!usc!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!mmi-dev-1.jet.UK!mjnShow Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.bug Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!ames!elroy.jpl.nasa.gov!usc!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!mmi-dev-1.jet.UK!mjn From: mjn@mmi-dev-1.jet.UK (Mark J Neale) Subject: compile mode sometimes kills wrong process Message-ID: <MJN.92Aug13152510@mmi-dev-1.jet.uk> Sender: gnulists@ai.mit.edu Organization: Joint European Torus Distribution: gnu Date: Thu, 13 Aug 1992 19:25:10 GMT Approved: bug-gnu-emacs@prep.ai.mit.edu Lines: 54