Skip to content

Commit

Permalink
Match WASM guard to cutils
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns authored Dec 27, 2024
1 parent 0b36c4d commit 336eb2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quickjs-libc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3037,7 +3037,7 @@ static int my_execvpe(const char *filename, char **argv, char **envp)

static void (*js_os_exec_closefrom)(int);

#ifndef EMSCRIPTEN
#if !defined(EMSCRIPTEN) && !defined(__wasi__)

static js_once_t js_os_exec_once = JS_ONCE_INIT;

Expand Down Expand Up @@ -3167,7 +3167,7 @@ static JSValue js_os_exec(JSContext *ctx, JSValue this_val,
}
}

#ifndef EMSCRIPTEN
#if !defined(EMSCRIPTEN) && !defined(__wasi__)
// should happen pre-fork because it calls dlsym()
// and that's not an async-signal-safe function
js_once(&js_os_exec_once, js_os_exec_once_init);
Expand Down

0 comments on commit 336eb2d

Please sign in to comment.