From owner-freebsd-bugs Wed Nov 3 11:40:22 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id E7FAA150D0 for ; Wed, 3 Nov 1999 11:40:19 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id LAA79805; Wed, 3 Nov 1999 11:40:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 415A11502E; Wed, 3 Nov 1999 11:38:18 -0800 (PST) Message-Id: <19991103193818.415A11502E@hub.freebsd.org> Date: Wed, 3 Nov 1999 11:38:18 -0800 (PST) From: wpk@isc.org To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: i386/14689: waitpid doesn't harvest child process when program run under cron Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 14689 >Category: i386 >Synopsis: waitpid doesn't harvest child process when program run under cron >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Nov 3 11:40:00 PST 1999 >Closed-Date: >Last-Modified: >Originator: William King >Release: 3.3 >Organization: ISC >Environment: FreeBSD trantor.rc.vix.com 3.3-RELEASE FreeBSD 3.3-RELEASE #0: Thu Sep 16 23:40:35 GMT 1999 jkh@highwing.cdrom.com:/usr/src/sys/compile/GENERIC i386 >Description: waitpid(pid, &status, 0) doesn't harvest a child process when used in a program compiled with -D_REENTRANT, linked with libc_r.a and run from cron. The program forks. the parent waits for the child using waitpid(pid, &status, 0). the parent times out the waitpid with a sigalrm. the child sleeps and then exits. the waitpid call times out. The problem occurs only when the program is run from cron, compiled with -D_REENTRANT and linked with libc_r.a >How-To-Repeat: contact me for code to reproduce the problem >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message