commit | cad19fa66469d2a745fae0c168833d5d33d64489 | [log] [tgz] |
---|---|---|
author | Devendra Naga <devendra.aaru@gmail.com> | Thu May 17 15:07:48 2012 +0530 |
committer | Wim Van Sebroeck <wim@iguana.be> | Wed May 23 16:27:48 2012 +0200 |
tree | 0621fd18462f9308fc0c66543d05b756a3d51557 | |
parent | 3c2a6186c1a69d647e3a48ad3f7f9078c451111e [diff] |
Documentation/watchdog: Fix the file descriptor leak when no cmdline arg given we start a infinite loop when user gives ./watchdog-test, and when user ctrl + c's the program, we just exit immeadiately with out closing the filedescriptor of the watchdog device. a signal handler is used to do the job of closing the filedescriptor and exiting the program. Signed-off-by: Devendra Naga <devendra.aaru@gmail.com> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>