Skip to content

Commit

Permalink
cc: fix task_exit deadlock when cc is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
123abcpp committed Jun 11, 2024
1 parent e123fc2 commit e763c76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qlib/kernel/threadmgr/task_exit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,10 @@ impl Thread {

let creds = self.Credentials();
let kuid = creds.lock().RealKUID;
#[cfg(not(feature = "cc"))]
let userns = receiver.UserNamespace();
#[cfg(feature = "cc")]
let userns = creds.lock().UserNamespace.clone();

info.SigChld().uid = kuid.In(&userns).OrOverflow().0;

Expand Down

0 comments on commit e763c76

Please sign in to comment.