[Linux-ha-dev] Re: FIFO reader loops on SPARC
horms at verge.net.au
Mon Feb 14 01:33:18 MST 2005
On Sun, Feb 13, 2005 at 09:55:12PM -0700, Alan Robertson wrote:
> Horms wrote:
> >I'd like to bring this to people's attention again. On Linux, for all
> >architectures, except sparc, O_NDELAY is defined to be O_NONBLOCK, in
> >which case the patch below is harmless. However, on sparc O_NDELAY is
> >defined as (0x0004 | O_NONBLOCK), And apparently the patch below is
> >needed. Any objections to putting this into CVS?
> >> flags = fcntl(fiforfd, F_GETFL);
> >> flags &= ~O_NONBLOCK;
> >>+ flags &= ~O_NDELAY;
> Or more simply..
> flags &= ~(O_NONBLOCK|O_NDELAY);
> Please put this in both branches.
More information about the Linux-HA-Dev