Messages in this thread | | | Date | Tue, 24 May 2011 16:08:47 +0200 | From | Nicolas Kaiser <> | Subject | Re: [PATCH] posix clocks: correct error value in posix_clock_poll() |
| |
* Richard Cochran <richardcochran@gmail.com>: > On Tue, May 24, 2011 at 12:51:47PM +0200, Nicolas Kaiser wrote: > > It looks to me like -ENODEV might not be a good return value > > in poll(). Would POLLERR be the correct one in this case?
> The condition (!clk) is only satisfied when 'zombie' is set, > indicating that the dynamic clock has disappeared. That is why the > file operations uniformly return ENODEV. So, I think it makes sense > the way that it is. > > In addition, man 2 poll says, > > POLLERR > Error condition (output only). > > so using that error code would be misleading, IMHO.
I see. Sorry for the noise.
Best regards, Nicolas Kaiser
| |