shithub: ridefs

Download patch

ref: 1924e3b013b733435f33bbe47c78eea8cc052747
parent: 52956fd1393afd351f18c73f8fb68f0e706e40dd
author: B. Wilson <x@wilsonb.com>
date: Tue Jun 24 03:14:51 EDT 2025

Test simultaneous reader and writer

--- a/test
+++ b/test
@@ -84,15 +84,15 @@
 	cd `{read}
 	echo 'connect '^$addr >ctl
 
-	<>data >[1=0] {
+	>data {
 		msg='["Execute",{"text":"⍳5\n","trace":0}]'
 		echo -n $msg || fail 'Could not send message'
-	} & spid=$apid
+	} & tpid=$apid
 
-	<>data >[1=0] {
+	<data {
 		cat >/dev/null || fail 'Could not receive message'
 	} & rpid=$apid
 
-	wait $spid || fail $status
+	wait $tpid || fail $status
 	wait $rpid || fail $status
 }
--