mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
proxy dumps error number, if it receives an invalid system call
This commit is contained in:
parent
5048c3d3eb
commit
8dc9f7cbdc
1 changed files with 2 additions and 1 deletions
|
@ -32,6 +32,7 @@
|
|||
#include <stdint.h>
|
||||
#include <signal.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
|
@ -421,7 +422,7 @@ int handle_syscalls(int s)
|
|||
break;
|
||||
}
|
||||
default:
|
||||
fprintf(stderr, "Proxy: invalid syscall number %d\n", sysnr);
|
||||
fprintf(stderr, "Proxy: invalid syscall number %d, errno %d\n", sysnr, errno);
|
||||
exit(1);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue