shithub: pplay

Download patch

ref: 33f4e463140a206727ac9bead83fa0f1bf424156
parent: a11f4ecdff93790a3d03e7d0bcc7d04f1ea9504b
author: qwx <[email protected]>
date: Wed Jan 25 22:36:47 EST 2023

cmd: fix failing pipelines indefinitely disabling command input

--- a/cmd.c
+++ b/cmd.c
@@ -315,8 +315,10 @@
 	d = dot;
 	treadsoftly = 1;
 	fd = (intptr)efd;
-	if((c = readintochunks(fd)) == nil)
+	if((c = readintochunks(fd)) == nil){
+		treadsoftly = 0;
 		threadexits("failed reading from pipe: %r");
+	}
 	close(fd);
 	dot = d;
 	pushop(OPins, dot.from, dot.from+chunklen(c)-1, nil);