mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
parent
423cb0e80e
commit
324a23d3b1
1 changed files with 7 additions and 1 deletions
|
@ -282,7 +282,13 @@ ssize_t sys_write(int fd, const char* buf, size_t len)
|
|||
}
|
||||
|
||||
if (fd > 2)
|
||||
i = socket_recv(s, &i, sizeof(i));
|
||||
{
|
||||
int temp = socket_recv(s, &i, sizeof(i));
|
||||
if (temp < 0)
|
||||
{
|
||||
return (ssize_t) temp;
|
||||
}
|
||||
}
|
||||
|
||||
spinlock_irqsave_unlock(&lwip_lock);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue