Commit 66e451b5 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Work-around yet another bug of hopelessly broken MacOS X

Fixes #2984
parent 153dd4aa
...@@ -51,6 +51,12 @@ int main( int i_argc, const char *ppsz_argv[] ) ...@@ -51,6 +51,12 @@ int main( int i_argc, const char *ppsz_argv[] )
{ {
int i_ret; int i_ret;
#ifdef __APPLE__
/* The so-called POSIX-compliant MacOS X is not.
* SIGPIPE fires even when it is blocked in all threads! */
signal (SIGPIPE, SIG_IGN);
#endif
#ifndef ALLOW_RUN_AS_ROOT #ifndef ALLOW_RUN_AS_ROOT
if (geteuid () == 0) if (geteuid () == 0)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment