From owner-freebsd-hackers Tue Apr 20 12: 5:25 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [209.157.86.2]) by hub.freebsd.org (Postfix) with ESMTP id 0442C14BCF for ; Tue, 20 Apr 1999 12:05:23 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.3/8.9.1) id MAA99248; Tue, 20 Apr 1999 12:02:44 -0700 (PDT) (envelope-from dillon) Date: Tue, 20 Apr 1999 12:02:44 -0700 (PDT) From: Matthew Dillon Message-Id: <199904201902.MAA99248@apollo.backplane.com> To: Graham Wheeler Cc: hackers@FreeBSD.ORG Subject: Re: Using select() to implement a delay References: <199904200945.LAA28715@bowtie.nl> <371C53FE.3CE190C9@cdsec.com> <371C5501.3AA0A34@cdsec.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG : :I'm starting to suspect that this is the case, and that the signal :is SIGCHLD. The process does spin off child processes, and there may be Another thing you can do, if you want, is block all signals during the select using sigprocmask(). But this entails three system calls ( sigprocmask(), select(), sigprocmask() ) instead of two in the nominal case ( gettimeofday(), select(), [ gettimeofday() if select() returns that it was interrupted ] ). -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message