[bug #65890] xargs keeps child processes in zombie state before starting a new process

Paulo César Pereira de Andrade <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
Follow-up Comment #2, bug #65890 (group findutils):

I did not add a version as it should happen in all versions. Before leaving
the version unset I did test with 4.9.0 and the problem still happens. I
assume it happens in 4.10.0.

Checking latest source code in
https://git.savannah.gnu.org/cgit/findutils.git/tree/xargs/xargs.c I do not
see how it could not also happen in the latest changes as it still has:


  /* Make sure to listen for the kids.  */
  signal (SIGCHLD, SIG_DFL);


The fix probably should be to install a signal handler for SIGCHLD and call
waitpid in the signal handler.



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65890>

_______________________________________________
Mensagem enviada pelo Savannah
https://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.