cat and nonblocking

James Simmons jsimmons at infradead.org
Mon Mar 31 14:40:03 UTC 2008


> # { echo TEST; sleep 1; } | { ./nonblocking; cat; ./blocking; } >result
> cat: read error: Resource temporarily unavailable
> 
> and file "result" contains "TEST", as expected. -- vda

For my case I have ` cat /var/log/test | more ` where the test log is a 
ring buffer. Without the patch cat will read the file but then just sit 
there once it reaches the end. With the non blocking patch it exits. 
Any work arounds for this? 




More information about the busybox mailing list