ntdll: Don't poll() on a normal file; it should never block.
This commit is contained in:
parent
77ca0d8935
commit
974b8d802c
|
@ -612,6 +612,7 @@ NTSTATUS WINAPI NtReadFile(HANDLE hFile, HANDLE hEvent,
|
|||
goto done;
|
||||
}
|
||||
}
|
||||
else if (type == FD_TYPE_FILE) continue; /* no async I/O on regular files */
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -940,6 +941,7 @@ NTSTATUS WINAPI NtWriteFile(HANDLE hFile, HANDLE hEvent,
|
|||
status = STATUS_SUCCESS;
|
||||
goto done;
|
||||
}
|
||||
if (type == FD_TYPE_FILE) continue; /* no async I/O on regular files */
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue