Skip to content

Commit

Permalink
added failed fork trace
Browse files Browse the repository at this point in the history
  • Loading branch information
Razz4780 committed Oct 20, 2023
1 parent da8803b commit a284577
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mirrord/layer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,8 @@ pub(crate) unsafe extern "C" fn fork_detour() -> pid_t {
mirrord_layer_entry_point()
} else if res > 0 {
tracing::debug!("Child process id is {res}.");
} else {
tracing::debug!("fork failed");
}

res
Expand Down

0 comments on commit a284577

Please sign in to comment.