Date: Wed, 3 Oct 2001 04:01:39 -0700 (PDT) From: Alfred Perlstein <alfred@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdlib system.c Message-ID: <200110031101.f93B1d378134@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <toshi@jp.FreeBSD.org>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110031101.f93B1d378134>
