Problem with apr_proc_wait and/or svn_io_run_cmd
From: <epg_at_pretzelnet.org>
Date: 2003-01-23 05:44:08 CET
As an attempt to make this on-topic for both lists, i won't go
Correctly using waitpid(2) involves checking for EINTR and trying
while (waitpid(pid, status, 0) 0) {
It looks like the APR equivalent is supposed to be:
do {
Is that correct? If so, svn_io_run_cmd needs to be fixed to do
/* Wait for the cmd command to finish. */
Furthermore, apr_proc_wait itself has a problem:
if ((pstatus = waitpid(proc-pid, exit_int, waitpid_options)) 0) {
return errno;
That's it. It never handles the case where waitpid(2) returns
do {
Or maybe APR_STATUS_IS_CHILD_NOTDONE should handle that? I don't
It may be as simple as changing APR_STATUS_IS_CHILD_NOTDONE, in
-- Eric Gillespie, Jr. * epg@pretzelnet.org Build a fire for a man, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life. -Terry Pratchett --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org For additional commands, e-mail: dev-help@subversion.tigris.orgReceived on Sat Oct 14 02:08:49 2006 |
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.