From: <ps...@us...> - 2009-04-04 11:49:34
|
Revision: 1476 http://znc.svn.sourceforge.net/znc/?rev=1476&view=rev Author: psychon Date: 2009-04-04 11:49:15 +0000 (Sat, 04 Apr 2009) Log Message: ----------- CFile::Close(): check return value of close() for errors Modified Paths: -------------- trunk/FileUtils.cpp Modified: trunk/FileUtils.cpp =================================================================== --- trunk/FileUtils.cpp 2009-04-02 13:05:05 UTC (rev 1475) +++ trunk/FileUtils.cpp 2009-04-04 11:49:15 UTC (rev 1476) @@ -372,7 +372,10 @@ } void CFile::Close() { if (m_iFD >= 0) { - close(m_iFD); + if (close(m_iFD) < 0) { + DEBUG("CFile::Close(): close() failed with [" + << strerror(errno) << "]"); + } } m_iFD = -1; ClearBuffer(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |