tools: debug-events: install the signal handler before any libinput operations
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 1 Nov 2018 06:42:27 +0000 (16:42 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 7 Nov 2018 05:03:52 +0000 (05:03 +0000)
commitbd52bf542119f0cc71f7b676f9ed67d5001c40fc
tree60f5c79c0996dac95fe276015e2effe034fae0bf
parent22890a4719321f2b9f303b746746b4934bbd03ae
tools: debug-events: install the signal handler before any libinput operations

On a CI container, we will time out trying to find the udev device for our
device node. This takes 2s, a SIGINT during this time should be treated the
same as one during the mainloop.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools/libinput-debug-events.c