swc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/swc
Log | Files | Refs | README | LICENSE

commit 7e4243e786ae9a55a7627358a321aed83287e5e0
parent 98df7a63570274c0f7215ba02cf89b45462c315b
Author: Michael Forney <mforney@mforney.org>
Date:   Sat,  2 Aug 2014 10:26:31 -0700

launch: Send DEACTIVATED signal *before* disabling devices

Diffstat:
Mlaunch/launch.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/launch/launch.c b/launch/launch.c @@ -169,9 +169,9 @@ static void handle_usr1(int signal) { struct swc_launch_event event = { .type = SWC_LAUNCH_EVENT_DEACTIVATE }; + send(launcher.socket, &event, sizeof event, 0); stop_devices(true); ioctl(launcher.tty_fd, VT_RELDISP, 1); - send(launcher.socket, &event, sizeof event, 0); } static void handle_usr2(int signal)