Hi Alexandre,
Apologies, i thought explicitly about the error handling issue, and should have made a note about why i did it that way.
Since the async handler code will handle problematic fds correctly, rather than duplicating all the checks, i thought it would be easier to fall thru to the existing checks in check_async_list and FILE_ReadAsyncService. Do you think it would be better to pick up any problems early?
Did you look at my async queues patch? Are you waiting for Martin to respond? The async handling code is a bit of a hacked up mess the moment... i haven't applied the fixes to WriteFile that i've applied to ReadFile, and overlapped WaitCommEvent needs to return immediately if events are already available. I don't want to fix those problems twice, so i'm waiting for the big async patch...
Mike
Original message from: Alexandre Julliard julliard@winehq.com
Mike McCormack mike_mccormack@start.com.au writes:
This is a fix for the problem below. Since all COM port fds are non-blocking, if we get an error (EAGAIN) return from the initial read, we should just ignore it and let the wineserver poll on it.
Shouldn't you check for EAGAIN then? It doesn't seem safe to ignore all errors.
-- Alexandre Julliard julliard@winehq.com
------------------------------------------ mailto:Mike_McCormack@start.com.au ph +82 16 430 0425
__________________________________________________________________ Get your free Australian email account at http://www.Looksmart.com.au
Mike McCormack mike_mccormack@start.com.au writes:
Since the async handler code will handle problematic fds correctly, rather than duplicating all the checks, i thought it would be easier to fall thru to the existing checks in check_async_list and FILE_ReadAsyncService. Do you think it would be better to pick up any problems early?
Yes, I think if we find an error here, there isn't much point in going on just to stumble on the same error again.
Did you look at my async queues patch? Are you waiting for Martin to respond? The async handling code is a bit of a hacked up mess the moment... i haven't applied the fixes to WriteFile that i've applied to ReadFile, and overlapped WaitCommEvent needs to return immediately if events are already available. I don't want to fix those problems twice, so i'm waiting for the big async patch...
I'm applying it right now...