From owner-cvs-all Wed Oct 3 4: 1:44 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 39B5F37B401; Wed, 3 Oct 2001 04:01:39 -0700 (PDT) Received: (from alfred@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f93B1d378134; Wed, 3 Oct 2001 04:01:39 -0700 (PDT) (envelope-from alfred) Message-Id: <200110031101.f93B1d378134@freefall.freebsd.org> From: Alfred Perlstein Date: Wed, 3 Oct 2001 04:01:39 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdlib system.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG alfred 2001/10/03 04:01:39 PDT Modified files: lib/libc/stdlib system.c Log: Avoid getting stuck in system(3) when the internal call to wait4() is interrupted by saving the pid. The old code would assign the return value to pid which would trash it, to fix the problem save a copy of the pid to be used as the paramter to wait4(). Submitted by: Toshihiko ARAI Revision Changes Path 1.8 +4 -3 src/lib/libc/stdlib/system.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message