fix tty problem when enlightenment(drm-backend) is killed by SIGSEGV
authorBoram Park <boram1288.park@samsung.com>
Tue, 17 Mar 2015 13:33:55 +0000 (09:33 -0400)
committerChris Michael <cp.michael@samsung.com>
Tue, 17 Mar 2015 13:33:55 +0000 (09:33 -0400)
commit7c41fb431d165e723db51cd69a208f99102d743b
treeb426fbda9ed4bfef850082ff3b6a3fef0d2050f3
parentfeca6dce4fd34bff941fa273a69f911821f724ec
fix tty problem when enlightenment(drm-backend) is killed by SIGSEGV

Summary:
    When enlightenment is working as wayland display server, enlightenment
    changes KDSETMODE to KD_GRAPHICS in _ecore_drm_tty_setup(). However,
    when enlightenment is killed by SIGSEGV, it doesn't changes KDSETMODE
    to KD_TEXT because englightenment process doesn't call ecore_drm_tty_close().

    When enlightenment is killed by SIGSEGV, it should get drm devices with
    ecore_drm_device_get_list(), and will call ecore_drm_launcher_disconnect(),
    and ecore_drm_launcher_disconnect will call ecore_drm_tty_close() internally.

Change-Id: I425488eb4489709cc968b77bd4bc48a4aa4ae30c

Reviewers: zmike, cedric, raster, gwanglim, devilhorns

Reviewed By: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2160
src/bin/e_signals.c