Re: [PATCH] Documentation/watchdog: Fix the file descriptor leak when no cmdline arg given

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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-watchdog" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux