Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Nov 1999 08:30:03 -0800 (PST)
From:      Sheldon Hearn <sheldonh@uunet.co.za>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: i386/14689: waitpid doesn't harvest child process when program run under cron 
Message-ID:  <199911041630.IAA40191@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR i386/14689; it has been noted by GNATS.

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: William King <wpk@fc.net>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: i386/14689: waitpid doesn't harvest child process when program run under cron 
Date: Thu, 04 Nov 1999 18:24:11 +0200

 On Thu, 04 Nov 1999 08:38:43 CST, William King wrote:
 
 > find attached x.tar containing x.c and makefile. make x and
 > run it under cron. then try running it by hand.
 
 Ah.
 
 The parent arranges for delivery of a SIGALRM in 60 seconds.
 The program forks.
 The parent waits on the child pid with waitpid().
 The child sleeps 10 seconds, then exits.
 The parent returns from waitpid() on receipt of SIGARLM.
 
 When the program is not run from cron, the parent returns from waitpid()
 when the child exits as expected.
 
 Ciao,
 Sheldon.
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911041630.IAA40191>