🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix
Article #651

Non-blocking IO

#651
From: Billy Taylor
Date: Fri, 31 Mar 1989 03:16
14 lines
1013 bytes
How can I do a 'read' that works ok except when there's actually nothing
to be read, in which case it returns a -1.

The only success I've had so far end up in any shells I was running getting
sent a sig 20.

I can get it to work under dbx but not in normal usage.

Ta.

Billy Taylor,                           JANET: wrt@uk.ac.ed.etive
Edinburgh University Computing Science  ARPA:  wrt%ed.etive@nss.cs.ucl.ac.uk
                                        UUCP:  ...!uunet!mcvax!ukc!etive!wrt
Technical Details
Message-ID: <973@altos86.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!voder!pyramid!nsc!icldata!altnet!altos86!dtynan

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!voder!pyramid!nsc!icldata!altnet!altos86!dtynan
From: wrt@etive.ed.ac.uk (Billy Taylor)
Newsgroups: comp.unix
Subject: Non-blocking IO
Keywords: read, I/O
Message-ID: <973@altos86.UUCP>
Date: 31 Mar 89 03:16:57 GMT
Sender: dtynan@altos86.UUCP
Reply-To: Billy Taylor <mcvax!etive.ed.ac.uk!wrt@uunet.UU.NET>
Organization: Edinburgh University Computer Science
Lines: 14
Approved: dtynan@zorba.Tynan.COM