WMaker: removed use of dangerous RETRY macro in GetCommandForPid for Linux (Coverity...
commit1265873fa310aa42d42fdfad1483c5f66d304825
authorChristophe CURIS <christophe.curis@free.fr>
Tue, 20 May 2014 19:46:51 +0000 (20 21:46 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Tue, 20 May 2014 20:29:57 +0000 (20 21:29 +0100)
tree96a2d5b3415281e18086235c70143dcf1d9e2bfc
parent1a64ca8275974592cfa3a42d4cbb0d4355031833
WMaker: removed use of dangerous RETRY macro in GetCommandForPid for Linux (Coverity #50267)

As pointed by Coverity, the function GetCommandForPid did use a macro
'RETRY' for the 'close' of file descriptor, which is not correct because
on success the function 'close' does not reset errno, and in case of
failure the file descriptor is not more valid anyway.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
src/osdep_linux.c