Fixed with a comprehensive set of close-on-exec changes in commit 842c2139ee2bb06de824c15923ef1aca9b9c504c. -zefram