Hello,
I was looking at the source code in sal/osl/unx/file.cxx.
And there in function osl_openFile() is the following code:
/* remove the NONBLOCK flag again */
flags = fcntl(fd, F_GETFL, NULL);
flags &= ~O_NONBLOCK;
if( 0 > fcntl(fd, F_GETFL, flags) )
return oslTranslateFileError(OSL_FET_ERROR, errno);
The second fcntl call should be fcntl(fd, F_SETFL, flags), shouldn't it?
--
Pavel Lastovicka
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]