added support for GNU/Hurd
This commit is contained in:
parent
ae9c330629
commit
dcea7709f2
36 changed files with 626 additions and 35 deletions
|
@ -204,6 +204,10 @@ pub unsafe fn init(argc: isize, argv: *const *const u8, sigpipe: u8) {
|
|||
}
|
||||
if let Some(handler) = handler {
|
||||
rtassert!(signal(libc::SIGPIPE, handler) != libc::SIG_ERR);
|
||||
#[cfg(target_os = "hurd")]
|
||||
{
|
||||
rtassert!(signal(libc::SIGLOST, handler) != libc::SIG_ERR);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue