🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix
Article #155

Re: UNIX pipe bug

#155
From: David Taylor
Date: Fri, 13 Jul 1990 21:06
16 lines
965 bytes
idall@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.
Technical Details
Message-ID: <3690@zorba.Tynan.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!samsung!usc!apple!zorba!dtynan
References: <3589@zorba.Tynan.COM> <3640@zorba.Tynan.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!samsung!usc!apple!zorba!dtynan
From: dave@labtam.oz.au (David Taylor)
Newsgroups: comp.unix
Subject: Re: UNIX pipe bug
Keywords: pipe,UNIX
Message-ID: <3690@zorba.Tynan.COM>
Date: 13 Jul 90 21:06:33 GMT
References: <3589@zorba.Tynan.COM> <3640@zorba.Tynan.COM>
Sender: dtynan@zorba.Tynan.COM
Lines: 16
Approved: dtynan@zorba.Tynan.COM