Skip to content

Commit

Permalink
Merge pull request #2255 from saschagrunert/debug-command
Browse files Browse the repository at this point in the history
Add runtime command to debug output
  • Loading branch information
openshift-merge-bot[bot] authored Jun 14, 2024
2 parents 5ee89f3 + 3289116 commit a805a79
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions conmon-rs/server/src/child_reaper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use nix::{
};
use std::{
ffi::OsStr,
fmt::Write,
fmt::{Debug, Write},
os::fd::{AsRawFd, FromRawFd, OwnedFd, RawFd},
path::{Path, PathBuf},
process::Stdio,
Expand Down Expand Up @@ -67,10 +67,11 @@ impl ChildReaper {
additional_fds: Vec<OwnedFd>,
) -> Result<(u32, CancellationToken)>
where
P: AsRef<OsStr>,
I: IntoIterator<Item = S>,
P: AsRef<OsStr> + Debug,
I: IntoIterator<Item = S> + Debug,
S: AsRef<OsStr>,
{
debug!("Running: {:?} {:?}", cmd, args);
let mut cmd = Command::new(cmd);

if stdin {
Expand Down

0 comments on commit a805a79

Please sign in to comment.