This commit is contained in:
2024-04-22 09:30:14 +02:00
parent 1a378c2e0c
commit 0a86411e46
2 changed files with 10 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ uint64_t __jasmin_syscall_open__(uint8_t* x, uint64_t xlen)
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);
long ret = syscall(SYS_futex, addr, FUTEX_WAIT, 0, NULL, NULL, 0);
if (ret == -1) {
printf("Agent futex error: %d\n", errno);
perror("futex");