Update of bug #13878 (project findutils):
Status: None => Fixed
Assigned to: None => jay
_______________________________________________________
Follow-up Comment #1:
That was an interesting problem. The issue is that child_error is changed in
wait_for_all() after exit() has already been called on (since we fall off the
end of main()). That means that it's too late by then to change the return
value. As a workaround for this problem we now call _exit() when this
happens, passing the correct return value. It might have been neater to
just call wait_for_all() before returning from main(). Anyway, the attached
patch (which I have committed to the development code) fixes the problem.
_______________________________________________________
Additional Item Attachment:
File name: xargs-child-failure-exit-123.patch Size:2 KB
Fix
<http://savannah.gnu.org/bugs/download.php?item_id=13878&item_file_id=2734>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13878>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-findutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-findutils