Cygwin: AF_UNIX: sendmsg: fix return value
On a successful write, the return value is now the number of bytes of user data written, not the total number of bytes written.
This commit is contained in:
parent
780133d455
commit
3eab592c22
|
@ -2090,7 +2090,7 @@ wait:
|
|||
if (io.Information == 0)
|
||||
set_errno (EAGAIN);
|
||||
else
|
||||
ret = io.Information;
|
||||
ret = io.Information - AF_UNIX_PKT_OFFSETOF_DATA (packet);
|
||||
}
|
||||
else if (STATUS_PIPE_IS_CLOSED (status))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue