summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-10 11:09:08 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-10 11:09:08 +0000
commit406dab851b0f884f40671dafec5a5d9d357f0f09 (patch)
treeb460a6b23da8c99cb0ee469a4ec110731cff1ea7 /mplayer.c
parent894000c434d060651e7cb533a942f06ced3937c0 (diff)
downloadmpv-406dab851b0f884f40671dafec5a5d9d357f0f09.tar.bz2
mpv-406dab851b0f884f40671dafec5a5d9d357f0f09.tar.xz
Restore terminal for gdb with -crash-debug by calling getch2_disable()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25009 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index 9c0c925db6..bce5f62c41 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -774,6 +774,7 @@ static void exit_sighandler(int x){
gdb_pid = fork();
mp_msg(MSGT_CPLAYER, MSGL_INFO, "Forked...\n");
if (gdb_pid == 0) { // We are the child
+ getch2_disable(); // allow terminal to work properly with gdb
if (execlp("gdb", "gdb", prog_path, spid, NULL) == -1)
mp_msg(MSGT_CPLAYER, MSGL_ERR, "Couldn't start gdb\n");
} else if (gdb_pid < 0)