summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-19 21:31:33 +0100
committerwm4 <wm4@nowhere>2013-12-19 21:31:33 +0100
commit833eba5304474392153189f3cc6b7baa8eb914cc (patch)
treef2536424fe762c7d9c98f52633d8f0a8752b4511 /common
parent25d4ae74f1dbddf99b147df0887d6810d34e36dd (diff)
downloadmpv-833eba5304474392153189f3cc6b7baa8eb914cc.tar.bz2
mpv-833eba5304474392153189f3cc6b7baa8eb914cc.tar.xz
terminal: move SIGTTOU signal handler setup code
This comes with a real change in behavior: now the signal handler is set only when the terminal input code is active (e.g. not with --no-consolecontrols), but this should be ok.
Diffstat (limited to 'common')
-rw-r--r--common/msg.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/common/msg.c b/common/msg.c
index 3dd36dfbb6..e80f6fcf16 100644
--- a/common/msg.c
+++ b/common/msg.c
@@ -103,13 +103,6 @@ static void mp_msg_do_init(void){
GetConsoleScreenBufferInfo(hSTDOUT, &cinfo);
stdoutAttrs = cinfo.wAttributes;
#endif
-#ifndef __MINGW32__
- struct sigaction sa;
- sa.sa_handler = SIG_IGN;
- sa.sa_flags = 0;
- sigemptyset(&sa.sa_mask);
- sigaction(SIGTTOU, &sa, NULL); // just write to stdout if you have to
-#endif
int i;
char *env = getenv("MPV_VERBOSE");
if (env)