<div dir="auto"><div>If you reverse the test there is a window where data may be written to the pipe between the two tests, and the data is subsequently lost.<br><br><div data-smartmail="gmail_signature">Cheers,<br>Alistair<br>(on phone)</div><br><div class="gmail_quote"><div dir="ltr">On Thu., 12 Apr. 2018, 09:04 K K Subbu, <<a href="mailto:kksubbu.ml@gmail.com">kksubbu.ml@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I stumbled upon the following method in OSProcess-Base package:<br>
<br>
ExternalPipe#atEnd<br>
<br>
  ^writer closed and: [self peek == nil]<br>
<br>
Shouldn't the test be reversed? In a pipe, the reader's peek buffer <br>
could be holding an object while the writer has closed its end.<br>
<br>
Regards .. Subbu<br>
<br>
</blockquote></div></div></div>