summaryrefslogtreecommitdiffstats
path: root/Documentation/watchdog/watchdog-api.txt
diff options
context:
space:
mode:
authorDevendra Naga <devendra.aaru@gmail.com>2012-05-17 11:37:48 +0200
committerWim Van Sebroeck <wim@iguana.be>2012-05-23 16:27:48 +0200
commitcad19fa66469d2a745fae0c168833d5d33d64489 (patch)
tree0621fd18462f9308fc0c66543d05b756a3d51557 /Documentation/watchdog/watchdog-api.txt
parentDocumentation/watchdog: close the fd when cmdline arg given (diff)
downloadlinux-cad19fa66469d2a745fae0c168833d5d33d64489.tar.xz
linux-cad19fa66469d2a745fae0c168833d5d33d64489.zip
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>
Diffstat (limited to 'Documentation/watchdog/watchdog-api.txt')
0 files changed, 0 insertions, 0 deletions