Reinforce handling of external processes and wait()
Merge pull request #1907 from OCamlPro/sig-handling

Reinforce handling of external processes and wait()