Use tcdrain() instead of tcflush() to implement FlushFileBuffers() for a COM port.

Alexandre Julliard julliard at winehq.org
Mon Aug 26 12:55:04 CDT 2013


Wolfgang Walter <wine at stwm.de> writes:

> Am Montag, 26. August 2013, 17:13:46 schrieb Alexandre Julliard:
>> 
>> You probably don't want to fail just because there's no unix fd.
>
> What is the correct behaviour if there ist no such handle? Should I only fail 
> in the case FD_FILE_SERIAL ?

You'd want to still try the server call, so that the server can
implement a different behavior if needed.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list