Skip to content

Commit

Permalink
Change error code on waitpid to ENOSYS (#1240)
Browse files Browse the repository at this point in the history
  • Loading branch information
dalcde authored Feb 14, 2021
1 parent b6e4098 commit 4788dd7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions emsdk/patches/fix_waitpid.patch
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
diff --git a/srctemp/library_syscall.js b/emsdk/upstream/emscripten/src/library_syscall.js
index 5a1c978..725459e 100644
--- a/emsdk/upstream/emscripten/src/library_syscall.js
+++ b/emsdk/upstream/emscripten/src/library_syscall.js
@@ -755,7 +755,8 @@ var SyscallsLibrary = {
@@ -755,7 +755,7 @@ var SyscallsLibrary = {
},
__sys_wait4__proxy: false,
__sys_wait4: function(pid, wstart, options, rusage) {
- abort('cannot wait on child processes');
+ // Makes no sense in a single-process environment.
+ return -({{{ cDefine('ECHILD') }}});
+ return -({{{ cDefine('ENOSYS') }}});
},
__sys_setdomainname__nothrow: true,
__sys_setdomainname__proxy: false,

0 comments on commit 4788dd7

Please sign in to comment.