diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-11-22 13:19:04 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-11-22 13:19:04 +0100 |
| commit | b584832e756adc3501dad65ec35d1ed7cd43a2f0 (patch) | |
| tree | 15857c074926051f14f9f6660863fc59614c7a00 /src/wrapped | |
| parent | 299c911330c1133af48aae2e82d1dd04d5b09ca5 (diff) | |
| download | box64-b584832e756adc3501dad65ec35d1ed7cd43a2f0.tar.gz box64-b584832e756adc3501dad65ec35d1ed7cd43a2f0.zip | |
Improve (non-libc) syscall, and added a few new ones
Diffstat (limited to 'src/wrapped')
| -rwxr-xr-x | src/wrapped/wrappedlibc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index 6b6a4b01..a0029596 100755 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -444,7 +444,7 @@ pid_t EXPORT my_vfork(x64emu_t* emu) { #if 1 emu->quit = 1; - emu->fork = 1; // use regular fork... + emu->fork = 3; // use regular fork... return 0; #else return 0; @@ -1635,7 +1635,7 @@ EXPORT int32_t my_epoll_ctl(x64emu_t* emu, int32_t epfd, int32_t op, int32_t fd, struct epoll_event _event[1] = {0}; if(event && (op!=EPOLL_CTL_DEL)) AlignEpollEvent(_event, event, 1); - return epoll_ctl(epfd, op, fd, event?_event:event); + return epoll_ctl(epfd, op, fd, event?_event:NULL); } EXPORT int32_t my_epoll_wait(x64emu_t* emu, int32_t epfd, void* events, int32_t maxevents, int32_t timeout) { |