-
-
Notifications
You must be signed in to change notification settings - Fork 865
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change error code on waitpid to ENOSYS (#1240)
- Loading branch information
Showing
1 changed file
with
2 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |