4 ms·
I wonder how much of go (et al.) channels abstractions could be done this way.
by agumonkey 13y ago
I wonder how much of go (et al.) channels abstractions could be done this way.
- nine_k 13y agoIn Go you can control the length of the channel queue, and chan create a zero-buffering channel which blocks the writer until a reader is available. Unfortunately mkfifo does not seem to allow this at all.
- sleepydog 13y agofifos by themselves aren't useful if you're trying to do multi-process signaling with them, as input from multiple programs is not separated or delimited in any way. fifodirs are a nice signalling mechanism built on top of fifos: http://www.skarnet.org/software/s6/fifodir.html http://www.skarnet.org/software/s6/fifodir.html