about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-12-21 20:30:35 +0100
committerptitSeb <sebastien.chev@gmail.com>2021-12-21 20:30:35 +0100
commit41d3fb743224c31666dd2e6e4ab6396b51eb655f (patch)
tree29abf129e799a970aaba2675cd07cb78339f1cb1
parent5d1298ebe399fb20f6d84cb43e34cce975479e32 (diff)
downloadbox64-41d3fb743224c31666dd2e6e4ab6396b51eb655f.tar.gz
box64-41d3fb743224c31666dd2e6e4ab6396b51eb655f.zip
Made unsuported libc syscall non-fatal
-rwxr-xr-xsrc/emu/x64syscall.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/x64syscall.c b/src/emu/x64syscall.c
index 4f2b6fc3..2a4e65d6 100755
--- a/src/emu/x64syscall.c
+++ b/src/emu/x64syscall.c
@@ -547,9 +547,9 @@ uintptr_t EXPORT my_syscall(x64emu_t *emu)
             return (int)fchmodat((int)R_ESI, (void*)R_RDX, (mode_t)R_RCX, (int)R_R8d);
         #endif
         default:
-            printf_log(LOG_INFO, "Error: Unsupported libc Syscall 0x%02X (%d)\n", s, s);
-            emu->quit = 1;
-            emu->error |= ERR_UNIMPL;
+            printf_log(LOG_INFO, "Warning: Unsupported libc Syscall 0x%02X (%d)\n", s, s);
+            errno = ENOSYS;
+            return -1;
     }
     return 0;
 }