On Fri, May 25, 2018 at 10:01:57AM +0100, Stefan Hajnoczi wrote: > On Fri, May 25, 2018 at 11:30:22AM +0800, Peter Xu wrote: > > On Thu, May 24, 2018 at 10:28:37AM +0100, Stefan Hajnoczi wrote: > > > On Thu, May 24, 2018 at 12:39:52PM +0800, Peter Xu wrote: > > > > int monitor_fdset_get_fd(int64_t fdset_id, int flags) > > > > { > > > > -#ifndef _WIN32 > > > > +#ifdef _WIN32 > > > > + return -ENOENT; > > > > > > stubs/fdset.c:monitor_fdset_get_fd() should return -ENOENT instead of -1 > > > now. > > > > Yes that's intended. That's actually a suggestion from Markus since > > changing the return code will simplify the code. > > No, I understand that part. I'm pointing out that > stubs/fdset.c:monitor_fdset_get_fd() still returns -1 because it was not > updated by this patch. > > Since this patch changes the return value to -errno, the stub function > should be updated to return a sensible -errno value too.
Sorry I overlooked. You are right, I'll touch that up. Regards, -- Peter Xu