accessibility-oscilloscope / buildroot

accessibility oscilloscope buildroot config
0 stars 0 forks source link

thoughts on fifo creation #9

Closed cnorthway closed 2 years ago

cnorthway commented 2 years ago

currently fifos are being created by the reader program -- this could create weird situations if a writer opens first and tries to open the (nonexistent) pipe. depending on how the writer is set up, it would either fail (not good) or create a normal file (also, not good)

consider creating all fifos at once before starting any programs. could be done with mkfifo and the init system

jleightcap commented 2 years ago

the plan in /etc/init.d/S16oscope, for a chain p1 -> p2 -> p3,

p3 &
p2 &
p1 &

p3 creates the thing it reads from. p2 then starts and can write to that FIFO. etc.