Skip to content

Commit 8ee88ce

Browse files
committed
Use the new __wasm_signal_impl function from wasix-libc
1 parent 7730093 commit 8ee88ce

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/wasi/wasix.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ extern "C" {
960960
old: *mut sigaction,
961961
_external_handler: ::Option<unsafe extern "C" fn(::c_int)>,
962962
) -> ::c_int;
963-
fn __wasm_signal(signum: ::c_int);
963+
fn __wasm_signal_impl(signum: ::c_int);
964964
}
965965

966966
pub unsafe fn sigaction(sig: ::c_int, sa: *const sigaction, old: *mut sigaction) -> ::c_int {
@@ -975,11 +975,11 @@ extern "C" fn default_handler(sig: ::c_int) {
975975
}
976976
}
977977

978-
mod wasm_signal {
979-
#[no_mangle]
980-
extern "C" fn __wasm_signal(signum: ::c_int) {
981-
unsafe { super::__wasm_signal(signum) };
982-
}
978+
// Export the __wasm_signal function, used for receiving
979+
// signals from a WASIX runtime by wasix-libc
980+
#[no_mangle]
981+
extern "C" fn __wasm_signal(signum: ::c_int) {
982+
unsafe { __wasm_signal_impl(signum) };
983983
}
984984

985985
/// mocked functions that dont do anything in WASI land

0 commit comments

Comments
 (0)