summaryrefslogtreecommitdiff
path: root/tools/evemu-device.c
Commit message (Collapse)AuthorAgeFilesLines
* evemu-device: Use signal handler for all terminationHEADmasterPeter Hutterer2011-09-121-8/+32
| | | | | | | | | | | If evemu-device is backgrounded it can only be killed with SIGTERM. That again doesn't clean up properly. Since we didn't do anything with the read(2) data anyway, replace it with a sleep(3) and set the signal handler to terminate the loop on SIGINT and a few other signals. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Capture read errors in evemu-deviceHenrik Rydberg2011-04-201-1/+2
| | | | | | | Like the scan functions, evemu_device returns a non-positive number on failure. Adjust logic to capture the read errors returning zero. Signed-off-by: Henrik Rydberg <rydberg@bitmath.org>
* Added GPL-3 licensing to source files.Stephen M. Webb2011-03-141-1/+15
| | | | | Signed-off-by: Stephen M. Webb <stephen.webb@canonical.com> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Add a couple of includes to silence compiler warnings.Peter Hutterer2011-01-051-0/+1
| | | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Make evemu ABI resilientHenrik Rydberg2010-12-211-16/+24
| | | | | | | | Hide the evemu struct, make it versioned, and instead use new/delete and accessor functions. This should give us enough ABI stability to run mixed library implementations. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Flush stdout before entering the event loopHenrik Rydberg2010-09-231-1/+2
| | | | | | | Scripts that need the device node may have difficulties if the stream is not flushed before entering the event loop. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Show errno when failing to create deviceHenrik Rydberg2010-09-191-2/+3
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Initial evemu commitHenrik Rydberg2010-09-181-0/+110
Evemu is a kernel device and emulator, which allows for remote creation and testing of arbitrary devices. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>