swc

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

commit 02c2fa349e7a1e4992ac1d3bd05c0001a28e37af
parent bafc060909606fd7bed017c15c38bc5690321b4c
Author: Michael Forney <mforney@mforney.org>
Date:   Wed, 22 Jan 2014 03:48:06 -0800

launch: die if EVIOCREVOKE fails

Diffstat:
Mlaunch/launch.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/launch/launch.c b/launch/launch.c @@ -1,6 +1,6 @@ /* swc: launch/launch.c * - * Copyright (c) 2013 Michael Forney + * Copyright (c) 2013, 2014 Michael Forney * * Based in part upon weston-launch.c from weston which is: * @@ -106,8 +106,8 @@ static void stop_devices(bool fatal) { if (ioctl(launcher.input_fds[index], EVIOCREVOKE, 0) == -1 && fatal) { - perror("FATAL: Your kernel does not support EVIOCREVOKE; " - "input devices cannot be revoked"); + die("FATAL: Your kernel does not support EVIOCREVOKE; " + "input devices cannot be revoked: %s", strerror(errno)); } close(launcher.input_fds[index]); }