Skip to content

lib/subprocess: use SIGCHLD to detect child termination early

Karel Koci requested to merge bugfix/subprocess-handle-signal into master

The subprocess now handles SIGCHLD for faster subprocess termination. We care about the original child and nothild else. If that dies we consider it as termination of subprocess and abandon reading from pipes even when there could be still process writing to them.

This should prevent from scripts hanging.

Reference #319 (closed).

Edited by Miroslav Hanak

Merge request reports