UNIX pipe bug
David Taylor
dave at labtam.oz.au
Sat Jul 14 07:06:33 AEST 1990
idall at augean.ua.OZ.AU (Ian Dall) writes:
>mknod PIPE1 p
>cat ~/.login | tee PIPE1 | wc | cat - PIPE1
>Should work. My .login is around 600 bytes. It does work on a vanilla
>system V.2.2 box I have, but it doesn't work on a Sun4 running SunOs 4.
Shouldn't work ... classic deadlock situation.
cat can't start reading PIPE1 until it has finished reading standard
input which cn't occur until wc finishes, which can't occur until tee
finished, which can't occur until someone (cat) is willing to read PIPE1.
--
.. Dave T.
More information about the Comp.unix
mailing list