bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #13878] xargs exits with exitcode 1 instead of 123 if invoked comma


From: James Youngman
Subject: [bug #13878] xargs exits with exitcode 1 instead of 123 if invoked command fails
Date: Fri, 22 Jul 2005 20:47:06 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050610 Firefox/1.0.4 (Debian package 1.0.4-3)

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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]