Hi, Was looking at the _close_r() in src/newlib/newlib/libc/sys/wince/io.c, at the top:
EnterCriticalSection(&critsect); FDCHECK(fd); FDCHECK() macro can return from the method if file handle is invalid, and if it does, wouldn't that leave the lock, and cause deadlock for I/O operations? Thanks, Pawel. P.S. What does critsect protect there? Changes to fd[*].fd ? ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel