Skip to content

main/musl: backport patch for popen leaking pipes

Sören Tempel requested to merge nmeum/aports:musl-popen into master

Without this patch, musl leaks file descriptors to the child in applications which use multiple concurrent popen pipes but don't request close-on-exec. This can cause deadlocks with some application (e.g. mblaze). Since this patch fixes real bugs in real application (see !19262 (merged)) I would suggest backporting it since there will likely be no new musl release before Alpine release 3.15 is due.

The 0001-remove-spurious-lock-in-popen.patch has also been backported to make the patch apply cleanly.

See also:

Edited by Sören Tempel

Merge request reports