Skip to content

Commit 0bd3365

Browse files
Ignore SIGPIPE on all Unixes (#569)
Just spotted one in a macOS job on the CI
1 parent dce7d62 commit 0bd3365

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/cli/src/main/scala/scala/cli/ScalaCli.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ object ScalaCli extends CommandsEntryPoint {
155155
setSystemProps(systemProps)
156156

157157
// Getting killed by SIGPIPE quite often when on musl (in the "static" native
158-
// image), but also sometimes on glibc, when we use domain sockets to exchange with Bloop.
159-
// So let's just ignore those (which should just make some read / write calls
160-
// return -1).
161-
if (Properties.isLinux && isGraalvmNativeImage) {
158+
// image), but also sometimes on glibc, or even on macOS, when we use domain
159+
// sockets to exchange with Bloop. So let's just ignore those (which should
160+
// just make some read / write calls return -1).
161+
if (!Properties.isWin && isGraalvmNativeImage) {
162162
ignoreSigpipe()
163163
os.pwd
164164
}

0 commit comments

Comments
 (0)