API: [BugFix] On success, `ff_sendmsg` return the number of chars sent.

This commit is contained in:
chenwei 2018-04-09 11:22:26 +08:00
parent 575b547703
commit 8ad1f163fa
1 changed files with 2 additions and 0 deletions

View File

@ -625,6 +625,8 @@ ff_sendmsg(int s, const struct msghdr *msg, int flags)
if (rc) if (rc)
goto kern_fail; goto kern_fail;
rc = curthread->td_retval[0];
return (rc); return (rc);
kern_fail: kern_fail:
ff_os_errno(rc); ff_os_errno(rc);