From 6efe0907e9893241c9f1b3ed95aa2e8c7c08e8e4 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Mon, 25 Mar 2024 05:39:07 +0100 Subject: [PATCH] Fix --debug-output regression We accidentally close FLOG output file. Let's leak it for now; in future we should close it. --- src/bin/fish.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bin/fish.rs b/src/bin/fish.rs index 9580e0e5b..812f15bd3 100644 --- a/src/bin/fish.rs +++ b/src/bin/fish.rs @@ -523,8 +523,7 @@ fn throwing_main() -> i32 { Ok(dbg_file) => { // Rust sets O_CLOEXEC by default // https://github.com/rust-lang/rust/blob/07438b0928c6691d6ee734a5a77823ec143be94d/library/std/src/sys/unix/fs.rs#L1059 - - set_flog_file_fd(dbg_file.as_raw_fd()); + set_flog_file_fd(dbg_file.into_raw_fd()); } Err(e) => { // TODO: should not be debug-print