[vlc-devel] commit: Work-around yet another bug of hopelessly broken MacOS X ( Rémi Denis-Courmont )
git version control
git at videolan.org
Wed Jul 22 21:04:17 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jul 22 22:02:16 2009 +0300| [66e451b5af762b7caec7ed1b5ba2e668580ce362] | committer: Rémi Denis-Courmont
Work-around yet another bug of hopelessly broken MacOS X
Fixes #2984
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=66e451b5af762b7caec7ed1b5ba2e668580ce362
---
bin/vlc.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/bin/vlc.c b/bin/vlc.c
index 55f7c5f..5ca5a16 100644
--- a/bin/vlc.c
+++ b/bin/vlc.c
@@ -51,6 +51,12 @@ int main( int i_argc, const char *ppsz_argv[] )
{
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
if (geteuid () == 0)
{
More information about the vlc-devel
mailing list