Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix dependency generators sometimes dying with SIGPIPE
If a dependency generator dies while we're still writing to its stdin, it causes us to die rather randomly. Typically happens with fake dependency generators that don't actually bother reading their input and/or write anything back. This is almost certainly the ghost failure we've occasionally seen in the test-suite too (rpm-software-management#2470). Resurrect the explicit SIG_IGN that got removed apparently in commit 375a6b5. The matter was further confused by NSPR (which we once relied on) always setting SIGPIPE to SIG_IGN. Suggested-by: Michael Schroeder <mls@suse.de> Fixes: rpm-software-management#2949
- Loading branch information