Skip to content

Commit

Permalink
Auto merge of #3510 - RalfJung:sigpipe-default, r=RalfJung
Browse files Browse the repository at this point in the history
unix_sigpipe: don't inline DEFAULT, just use it from rustc

The default anyway changed since this code was written... it's now 0, not 2.
  • Loading branch information
bors committed Apr 24, 2024
2 parents 9d6623e + fb9bd72 commit 4028943
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/eval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4028943

Please sign in to comment.