From aa763685e216b9d3c65efe08999f0558a2098f7a Mon Sep 17 00:00:00 2001 From: Pip Cet Date: Sun, 7 Feb 2021 10:10:58 +0000 Subject: [PATCH] jsc/wasm32/wasm32.jsc: minor workaround --- jsc/wasm32/wasm32.jsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsc/wasm32/wasm32.jsc b/jsc/wasm32/wasm32.jsc index eeac13d6..e857046b 100644 --- a/jsc/wasm32/wasm32.jsc +++ b/jsc/wasm32/wasm32.jsc @@ -5363,7 +5363,7 @@ ThinThin.getuid = ThinThin.geteuid = ThinThin.getgid = ThinThin.getegid = functi ThinThin.getpid = ThinThin.getppid = function () { - return this.pid; + return this.pid || 1; }; ThinThin.dlload = function (addr, len, memp)