ssh host echo bla | echo bla

Nicolas Williams Nicolas.Williams at ubsw.com
Wed Dec 19 03:49:09 EST 2001


On Tue, Dec 18, 2001 at 05:37:33PM +0100, Markus Friedl wrote:
> On Tue, Dec 18, 2001 at 11:28:47AM -0500, Nicolas Williams wrote:
> > So what's the fix?
> 
> this is why i mail to the list. this list is for people who
> send patches :)
> 
> even
> 	$ ssh -n -2 host od /bsd | true
> waits very long.

I don't know if there is a fix. You never know when stdout or stderr
might become broken pipes. You just don't know because the only way to
find out is to poll them or write to them. But if you poll them you lose
because the poll will almost always return right away (they'll almost
always be writable or have an error). And you can't be writing to them
when you have nothing to write.

So the question is what should ssh do *when* ssh discovers that stdout
or stderr are broken pipes.


Nico
--
-DISCLAIMER: an automatically appended disclaimer may follow. By posting-
-to a public e-mail mailing list I hereby grant permission to distribute-
-and copy this message.-

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.




More information about the openssh-unix-dev mailing list