summaryrefslogtreecommitdiffstats
path: root/video/out/drm_common.c
diff options
context:
space:
mode:
authorrr- <mkurczew@gmail.com>2015-10-30 19:11:04 +0100
committerwm4 <wm4@nowhere>2015-10-30 20:26:37 +0100
commit7c6d7017bd661f9c560fdd2b7ab99e81ef32e633 (patch)
tree4081f159e14c91e8c5470802b99e2a1ff3608c6a /video/out/drm_common.c
parent344b65c4dbdc6af834d699922181b95373879189 (diff)
downloadmpv-7c6d7017bd661f9c560fdd2b7ab99e81ef32e633.tar.bz2
mpv-7c6d7017bd661f9c560fdd2b7ab99e81ef32e633.tar.xz
vo_drm: uninstall signal handlers after quitting
Diffstat (limited to 'video/out/drm_common.c')
-rw-r--r--video/out/drm_common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/drm_common.c b/video/out/drm_common.c
index 9e1507f9c6..1f2508a5c5 100644
--- a/video/out/drm_common.c
+++ b/video/out/drm_common.c
@@ -137,6 +137,8 @@ void vt_switcher_interrupt_poll(struct vt_switcher *s)
void vt_switcher_destroy(struct vt_switcher *s)
{
+ install_signal(RELEASE_SIGNAL, SIG_DFL);
+ install_signal(ACQUIRE_SIGNAL, SIG_DFL);
close(s->tty_fd);
close(vt_switcher_pipe[0]);
close(vt_switcher_pipe[1]);