From owner-freebsd-hackers Mon Feb 15 09:34:11 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA04276 for freebsd-hackers-outgoing; Mon, 15 Feb 1999 09:34:11 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from relay03.indigo.ie (relay03.indigo.ie [194.125.133.227]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id JAA04258 for ; Mon, 15 Feb 1999 09:34:06 -0800 (PST) (envelope-from nsmart@kira.team400.ie) Received: (qmail 26348 messnum 46222 invoked from network[194.125.214.13/pc214-13.indigo.ie]); 15 Feb 1999 17:34:05 -0000 Received: from pc214-13.indigo.ie (HELO kira.team400.ie) (194.125.214.13) by relay03.indigo.ie (qp 26348) with SMTP; 15 Feb 1999 17:34:05 -0000 Message-ID: <36C85A77.EDBC00F9@kira.team400.ie> Date: Mon, 15 Feb 1999 17:33:43 +0000 From: Niall Smart Organization: Trinity Commerce X-Mailer: Mozilla 4.5 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: Erik E Rantapaa CC: hackers@FreeBSD.ORG Subject: Re: select() can set errno to ECHILD? References: <19990215015534.A20671@oss.uswest.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Erik E Rantapaa wrote: > > I have code running under 2.2.x which claims that this is happening. > This behaviour is not documented in the man pages. I have not been able to > duplicate it in a simple test program I wrote, but the log files for > a Merit RADIUS server say that it is happening. > > Is this at all possible? You are getting SIGCHLD while blocked in select, waitpid with WNOHANG in then handler returns ECHILD, the signal handler fails to restore errno. There was a similar bug in the rpc code a while back. Niall To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message