VirtualBox

Changeset 77234 in vbox


Ignore:
Timestamp:
Feb 9, 2019 6:28:44 PM (6 years ago)
Author:
vboxsync
Message:

IPRT/fileio-posix.cpp: Return VERR_TRY_AGAIN when write() returns zero and we don't have pchWritten, don't try to convert errno as it shouldn't be set on 0 returns.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/fileio-posix.cpp

    r76902 r77234  
    516516                ssize_t cbWrittenPart = write(RTFileToNative(hFile), (const char *)pvBuf + cbWritten, cbToWrite - cbWritten);
    517517                if (cbWrittenPart <= 0)
    518                     return RTErrConvertFromErrno(errno);
     518                    return cbWrittenPart < 0 ? RTErrConvertFromErrno(errno) : VERR_TRY_AGAIN;
    519519                cbWritten += cbWrittenPart;
    520520            }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette