Skip to content

Commit 5538047

Browse files
committed
unix::init: Don't use signal on Unikraft.
Signed-off-by: Martin Kröning <[email protected]>
1 parent 7485e9c commit 5538047

File tree

1 file changed

+8
-1
lines changed
  • library/std/src/sys/unix

1 file changed

+8
-1
lines changed

library/std/src/sys/unix/mod.rs

+8-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,14 @@ pub unsafe fn init(argc: isize, argv: *const *const u8, sigpipe: u8) {
170170
}
171171

172172
unsafe fn reset_sigpipe(#[allow(unused_variables)] sigpipe: u8) {
173-
#[cfg(not(any(target_os = "emscripten", target_os = "fuchsia", target_os = "horizon")))]
173+
#[cfg(not(any(
174+
target_os = "emscripten",
175+
target_os = "fuchsia",
176+
target_os = "horizon",
177+
// Unikraft's `signal` implementation is currently broken:
178+
// https://github.com/unikraft/lib-musl/issues/57
179+
target_vendor = "unikraft",
180+
)))]
174181
{
175182
// We don't want to add this as a public type to std, nor do we
176183
// want to `include!` a file from the compiler (which would break

0 commit comments

Comments
 (0)