vfs_scannedonly and MSG_DONTWAIT

Olivier Sessink oliviersessink at gmail.com
Sun Jan 24 14:37:05 MST 2010


Björn JACKE wrote:
> Hi Olivіer,
> 
> vfs_scannedonly currently breaks the build on AIX because MSG_DONTWAIT doesn't
> exist there. If you need to do non-blocking IO you might want to set O_NONBLOCK
> on the socket beforehand (see http://cr.yp.to/unix/nonblock.html). Would you
> like to provide a patch for that?

the socket is non-blocking (set with
set_blocking(so->socket, false);
so my first thought is that the MSG_DONTWAIT can be replaced with 0
without negative side effects.

I'll have a look at it, I hope I find some time soon.

Olivier


More information about the samba-technical mailing list