🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3263

Re: select failed: Interrupted system call

#3263
From: Rick Johns
Date: Thu, 24 Mar 1994 20:44
31 lines
2113 bytes
In article <2msp8u$lct@bmerha64.bnr.ca>, Hamish.Macdonald@bnr.ca (Hamish Macdonald) writes:
|> >>>>> On 24 Mar 1994 12:01:56 EST,
|> >>>>> In message <1994Mar24.170156.15928@bcarh54a.bnr.ca>,
|> >>>>> kramer@bnr.ca (Guenther Kramer) wrote:
|> 
|> Guenther> All of this stuff would be so much simpler if HP-UX
|> Guenther> supported the SA_RESTART flag to sigaction().  Oh well.
|> 
|> Check out sigvector(2).

From sigvector(2):

 WARNINGS
      Restarting a select(2) call can sometimes cause unexpected results.
      If the select() call has a timeout specified, the timeout is restarted
      with the call, ignoring any portion that had elapsed prior to
      interruption by the signal.  Normally this simply extends the timeout
      and is not a problem.  However, if a handler repeatedly catches
      signals, and the timeout specified to select() is longer than the time
      between those signals, restarting the select() call effectively
      renders the timeout infinite.

Oops.  

-- 
Cheers,
 Rick Johns
 BNR
 rjohns@bnr.ca

Disclaimer: I said it, BNR didn't.
Technical Details
Message-ID: <1994Mar24.204437.29512@bmers95.bnr.ca>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!att-in!news.bu.edu!purdue!lerc.nasa.gov!magnus.acs.ohio-state.edu!math.ohio-state.edu!howland.reston.ans.net!cs.utexas.edu!convex!news.utdallas.edu!corpgate!bnrgate!bmers95!brtph46!rjohns
References: <1994Mar24.142710.11199@bcarh54a.bnr.ca> <2msp8u$lct@bmerha64.bnr.ca>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc89c,6ef1c459f8d64db7
X-Google-Attributes: gidfc89c,public
X-Google-Thread: fcda7,6ef1c459f8d64db7
X-Google-Attributes: gidfcda7,public
X-Google-Thread: 14b500,6ef1c459f8d64db7
X-Google-Attributes: gid14b500,public
X-Google-ArrivalTime: 1994-03-24 12:44:37 PST
Newsgroups: comp.unix.programmer,comp.sys.hp.hpux,bnr.unix
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!att-in!news.bu.edu!purdue!lerc.nasa.gov!magnus.acs.ohio-state.edu!math.ohio-state.edu!howland.reston.ans.net!cs.utexas.edu!convex!news.utdallas.edu!corpgate!bnrgate!bmers95!brtph46!rjohns
From: rjohns@brtph46.bnr.ca (Rick Johns)
Subject: Re: select failed: Interrupted system call
Message-ID: <1994Mar24.204437.29512@bmers95.bnr.ca>
Sender: usenet@bmers95.bnr.ca
Organization: Bell-Northern Research, Ottawa, Canada
References: <1994Mar24.142710.11199@bcarh54a.bnr.ca> <2msp8u$lct@bmerha64.bnr.ca>
Date: Thu, 24 Mar 1994 20:44:37 GMT
Lines: 31