### Eclipse Workspace Patch 1.0 #P ecos Index: io/fileio/current/src/fd.cxx =================================================================== RCS file: /cvs/ecos/ecos/packages/io/fileio/current/src/fd.cxx,v retrieving revision 1.7 diff -u -r1.7 fd.cxx --- io/fileio/current/src/fd.cxx 7 Apr 2004 11:18:54 -0000 1.7 +++ io/fileio/current/src/fd.cxx 18 Jan 2008 12:22:41 -0000 @@ -157,7 +157,11 @@ { cyg_file_lock( fp, fp->f_syncmode ); + FILEIO_MUTEX_UNLOCK(fdlock); + // closing the file might involve other file operations, e.g. + // tcp/ip communication on sockets. error = fp->f_ops->fo_close(fp); + FILEIO_MUTEX_LOCK(fdlock); cyg_file_unlock( fp, fp->f_syncmode );