zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: abrupt termination infinite loop workaround
@ 1999-12-02 20:42 Clint Adams
  0 siblings, 0 replies; only message in thread
From: Clint Adams @ 1999-12-02 20:42 UTC (permalink / raw)
  To: zsh-workers

If you kill zsh while (zleactive), it goes into an infinite loop
trying to unload zle and refusing itself.

This prevents the runaway shells.

--- Src/builtin.c	1999/11/30 06:12:12	1.1.1.40
+++ Src/builtin.c	1999/12/02 20:33:15
@@ -3201,6 +3201,7 @@
 	if (in_exit++ && from_signal) {
 	    LASTALLOC_RETURN;
 	}
+	zleactive = 0;
 	exit_modules();
 
 	if (isset(MONITOR)) {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-12-02 20:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-02 20:42 PATCH: abrupt termination infinite loop workaround Clint Adams

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).