git: 9front

Download patch

ref: 8670cd47ac313a8e91e495d43f765a7196929af8
parent: 2dafecdfa2833d083525d39119b864fa0a330c1c
author: Michael Forney <mforney@mforney.org>
date: Thu Mar 17 16:44:30 EDT 2022

rc: reset ntrap after parsing line

--- a/sys/src/cmd/rc/exec.c
+++ b/sys/src/cmd/rc/exec.c
@@ -1040,6 +1040,7 @@
 			p->lex = 0;
 		} else
 			--p->pc;	/* re-execute Xrdcmds after codebuf runs */
+		ntrap = 0;	/* avoid double-interrupts during blocked writes */
 		start(codebuf, 2, p->local, p->redir);
 	}
 	lex = 0;
--