Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

fix sigpipe on osx #160

Merged
merged 1 commit into from
May 15, 2019

Conversation

dwightguth
Copy link
Contributor

Despite being ostensibly a part of POSIX, MSG_NOSIGNAL is not defined in Mac OS. This causes nailgun to intermittently raise SIGPIPE on that platform, which in turn makes nails sometimes return exit status 141 when they should succeed and return exit status 0. This was breaking my Mac OS build of https://github.com/kframework/k.

Here we make use of the alternative, OSX-specific API SO_NOSIGPIPE to fix the same problem. this has been tested against the K test suite and makes it pass on Mac OS X.

@dwightguth
Copy link
Contributor Author

Is there anything else I need to do on this PR?

@styurin styurin force-pushed the master branch 2 times, most recently from 495eff8 to 948c51c Compare April 25, 2019 02:42
@dwightguth
Copy link
Contributor Author

@sbalabanov is there anything else I need to do to get this merged?

@sbalabanov-zz sbalabanov-zz merged commit 84f3b05 into facebookarchive:master May 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants