Add debug print to futex error
This commit is contained in:
@@ -93,7 +93,7 @@ uint8_t* __jasmin_syscall_read__(uint8_t* _x, uint64_t xlen, uint64_t fd)
|
||||
uint32_t* addr = (uint32_t*)(uintptr_t)fd;
|
||||
long ret = syscall(SYS_futex, addr, FUTEX_WAIT, 0x1, NULL, NULL, 0);
|
||||
if (ret == -1) {
|
||||
printf("%d\n", errno);
|
||||
printf("Agent futex error: %d\n", errno);
|
||||
perror("futex");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user