mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
close socket before terminate application
This commit is contained in:
parent
2b0af6b92c
commit
a0cc75c933
1 changed files with 1 additions and 0 deletions
|
@ -393,6 +393,7 @@ int handle_syscalls(int s)
|
|||
}
|
||||
default:
|
||||
fprintf(stderr, "Proxy: invalid syscall number %d, errno %d\n", sysnr, errno);
|
||||
close(s);
|
||||
exit(1);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue