When start process and wait it using if_perl/if_python/if_ruby or etc, calling system() occur error.
For example: https://gist.github.com/2290573
See wait4pid() in os_unix.c:3729
wait4pid() is waiting child process with using 'wait(2)'. The 'wait(2)' don't be specified child process ID. So if another child process exit, SIGCHLD is occured. To avoid this error, it should used 'waitpid(2)'. Below is a patch.
https://gist.github.com/2412399
Please check and include.
Thanks, I'll check it out later.
--
FATHER: We are here today to witness the union of two young people in the
joyful bond of the holy wedlock. Unfortunately, one of them, my son
Herbert, has just fallen to his death.
[Murmurs from CROWD; the BRIDE smiles with relief, coughs.]
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///