Skip to content
Commit cad19fa6 authored by Devendra Naga's avatar Devendra Naga Committed by Wim Van Sebroeck
Browse files

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: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 3c2a6186
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment