Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e679d6a

Browse files
committed
Copy own_namespace_rec_tid when diverting.
1 parent db2dcd1 commit e679d6a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/Task.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2514,6 +2514,7 @@ pid_t Task::pid_of_pidfd(int fd) {
25142514
Task::CapturedState Task::capture_state() {
25152515
CapturedState state;
25162516
state.rec_tid = rec_tid;
2517+
state.own_namespace_rec_tid = own_namespace_rec_tid;
25172518
state.fdtable_identity = uintptr_t(fds.get());
25182519
state.serial = serial;
25192520
state.tguid = thread_group()->tguid();
@@ -2597,6 +2598,7 @@ void Task::copy_state(const CapturedState& state) {
25972598
wait_status = state.wait_status;
25982599

25992600
ticks = state.ticks;
2601+
own_namespace_rec_tid = state.own_namespace_rec_tid;
26002602
}
26012603

26022604
remote_ptr<const struct syscallbuf_record> Task::next_syscallbuf_record() {

src/Task.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,7 @@ class Task {
881881
uint64_t cloned_file_data_offset;
882882
ThreadLocals thread_locals;
883883
pid_t rec_tid;
884+
pid_t own_namespace_rec_tid;
884885
uint32_t serial;
885886
ThreadGroupUid tguid;
886887
int desched_fd_child;

0 commit comments

Comments
 (0)