Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: abrupt termination infinite loop workaround



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)) {



Messages sorted by: Reverse Date, Date, Thread, Author