unix_sigpipe: don't inline DEFAULT, just use it from rustc
This commit is contained in:
parent
c1073fb36e
commit
aa19679ff0
1 changed files with 2 additions and 3 deletions
|
|
@ -386,10 +386,9 @@ pub fn create_ecx<'mir, 'tcx: 'mir>(
|
|||
|
||||
let main_ptr = ecx.fn_ptr(FnVal::Instance(entry_instance));
|
||||
|
||||
// Inlining of `DEFAULT` from
|
||||
// https://github.com/rust-lang/rust/blob/master/compiler/rustc_session/src/config/sigpipe.rs.
|
||||
// Always using DEFAULT is okay since we don't support signals in Miri anyway.
|
||||
let sigpipe = 2;
|
||||
// (This means we are effectively ignoring `#[unix_sigpipe]`.)
|
||||
let sigpipe = rustc_session::config::sigpipe::DEFAULT;
|
||||
|
||||
ecx.call_function(
|
||||
start_instance,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue