We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 811c821 commit 21dbb4dCopy full SHA for 21dbb4d
src/platform/mod.rs
@@ -45,9 +45,14 @@ pub fn init(platform_data_by_loader: usize) {
45
}
46
#[cfg(not(test))]
47
pub fn try_exit() {
48
- let pd = services::platform_data();
49
- if pd.env_id == services::ENV_ID_LINUX {
50
- #[cfg(not(target_arch = "wasm32"))]
+ #[cfg(not(all(target_arch = "x86_64", feature = "short")))] {
+ let pd = services::platform_data();
+ if pd.env_id == services::ENV_ID_LINUX {
51
+ #[cfg(not(target_arch = "wasm32"))]
52
+ unsafe { os::linux::syscall::exit_group(services::get_exit_status() as usize); }
53
+ }
54
55
+ #[cfg(all(target_arch = "x86_64", feature = "short"))] {
56
unsafe { os::linux::syscall::exit_group(services::get_exit_status() as usize); }
57
58
0 commit comments