syscall_emul: Return correct writev value

According to Linux man pages, if writev is successful, it returns the total
number of bytes written. Otherwise, it returns an error code. Instead of
returning 0, return the result from the actual call to writev in the system
call.
This commit is contained in:
Joel Hestness
2014-12-27 13:48:40 -06:00
parent df8df4fd0a
commit 642b9b4fab

View File

@@ -1138,7 +1138,7 @@ writevFunc(SyscallDesc *desc, int callnum, LiveProcess *process,
if (result < 0)
return -errno;
return 0;
return result;
}