From owner-freebsd-bugs Thu Jun 4 02:20:59 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA03927 for freebsd-bugs-outgoing; Thu, 4 Jun 1998 02:20:59 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA03904 for ; Thu, 4 Jun 1998 02:20:49 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id CAA24583; Thu, 4 Jun 1998 02:20:01 -0700 (PDT) Received: from www.in-design.com (www.in-design.com [206.210.93.16]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA03867 for ; Thu, 4 Jun 1998 02:20:26 -0700 (PDT) (envelope-from nsmart@www.in-design.com) Received: (from nsmart@localhost) by www.in-design.com (8.8.7/8.8.5) id FAA21144; Thu, 4 Jun 1998 05:20:18 -0400 (EDT) Message-Id: <199806040920.FAA21144@www.in-design.com> Date: Thu, 4 Jun 1998 05:20:18 -0400 (EDT) From: njs3@doc.ic.ac.uk Reply-To: njs3@doc.ic.ac.uk To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/6855: [URGENT][PATCH] svc_run: - select failed: No child processes Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 6855 >Category: bin >Synopsis: [URGENT][PATCH] svc_run: - select failed: No child processes >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jun 4 02:20:01 PDT 1998 >Last-Modified: >Originator: njs3@doc.ic.ac.uk >Organization: >Release: FreeBSD 2.2.5-RELEASE i386 >Environment: -stable only, patch already committed to -current. >Description: portmap.c: reap() clobbers errno leading to failure of portmap daemon >How-To-Repeat: Run a busy RPC server >Fix: *** portmap.c Thu Jun 4 10:02:58 1998 --- portmap.c Thu Jun 4 10:02:49 1998 *************** *** 85,90 **** --- 85,91 ---- */ #include + #include #include #include #include *************** *** 604,608 **** --- 605,613 ---- void reap() { + int save_errno; + + save_errno = errno; while (wait3((int *)NULL, WNOHANG, (struct rusage *)NULL) > 0); + errno = save_errno; } >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message