On Thu, Aug 14, 2014 at 01:59:07PM +0200, Tomas Mraz wrote:
On Čt, 2014-08-14 at 08:40 +0200, Robin Hack wrote:
> Hi all.
>
> I know that kernel will close opened file handlers on the end of process
> life... This will make coverity more happy and also it's good habit to
> cleanup your mess :).
I'd like to have an opinion of other Linux PAM upstream developers
whether we want to fix all these cases where we do not close file
descriptors before _exit().
The only point in an explicit close() call before _exit() is testing
close() return code. Without that testing, there is no use to call
close() right before _exit().
--
ldv