bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: preventing pipe reader from existing on writer exiting


From: Andreas Schwab
Subject: Re: preventing pipe reader from existing on writer exiting
Date: Wed, 30 Sep 2009 23:13:33 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

"Brian J. Murrell" <brian@interlinx.bc.ca> writes:

> Can anyone help?  Ultimately I need to do I/O through a named pipe and I
> need to be able to restart the writer without restarting the reader.

Just make sure the write side of the pipe is not closed prematurely.

$ (n=0; while [ $n -lt 10 ]; do cat /dev/zero; let n=$n+1; done) > /tmp/fifo &

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]