1
0
Fork 0
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:
Stefan Lankes 2016-03-25 14:42:42 +01:00
parent 5048c3d3eb
commit 8dc9f7cbdc

View file

@ -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;
}