From 1b5b23b94849b18bedd458fd83741fa07d840c7b Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 15 Sep 2016 13:13:23 +0200 Subject: client API: remove SIGPIPE overriding code This workaround prevented that libmpv users could accidentally crash when the SIGPIPE signal was triggered by FFmpeg's OpenSSL/GnuTLS usage. But it also modifies the global signal handler state, so remove it now that this workaround is not required anymore. --- player/main.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'player/main.c') diff --git a/player/main.c b/player/main.c index 8f85bea257..2f53f4daee 100644 --- a/player/main.c +++ b/player/main.c @@ -22,7 +22,6 @@ #include #include #include -#include #include "config.h" #include "mpv_talloc.h" @@ -514,12 +513,6 @@ int mp_initialize(struct MPContext *mpctx, char **options) if (opts->w32_priority > 0) SetPriorityClass(GetCurrentProcess(), opts->w32_priority); #endif -#ifndef _WIN32 - // Deal with OpenSSL and GnuTLS not using MSG_NOSIGNAL. - struct sigaction sa = { .sa_handler = SIG_IGN, .sa_flags = SA_RESTART }; - sigfillset(&sa.sa_mask); - sigaction(SIGPIPE, &sa, NULL); -#endif prepare_playlist(mpctx, mpctx->playlist); -- cgit v1.2.3