On 05/17/2012 04:36 AM, Devendra Naga wrote: > 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. Doesn't exiting a process close all its filehandles already? Rob -- GNU/Linux isn't: Linux=GPLv2, GNU=GPLv3+, they can't share code. Either it's "mere aggregation", or a license violation. Pick one. -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html