diff --git a/lib/ff_syscall_wrapper.c b/lib/ff_syscall_wrapper.c index 3e1e484d..cfc407c1 100644 --- a/lib/ff_syscall_wrapper.c +++ b/lib/ff_syscall_wrapper.c @@ -625,6 +625,8 @@ ff_sendmsg(int s, const struct msghdr *msg, int flags) if (rc) goto kern_fail; + rc = curthread->td_retval[0]; + return (rc); kern_fail: ff_os_errno(rc);