Skip to content

Commit

Permalink
Copy own_namespace_rec_tid when diverting.
Browse files Browse the repository at this point in the history
  • Loading branch information
khuey committed Mar 29, 2021
1 parent db2dcd1 commit e679d6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Task.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2514,6 +2514,7 @@ pid_t Task::pid_of_pidfd(int fd) {
Task::CapturedState Task::capture_state() {
CapturedState state;
state.rec_tid = rec_tid;
state.own_namespace_rec_tid = own_namespace_rec_tid;
state.fdtable_identity = uintptr_t(fds.get());
state.serial = serial;
state.tguid = thread_group()->tguid();
Expand Down Expand Up @@ -2597,6 +2598,7 @@ void Task::copy_state(const CapturedState& state) {
wait_status = state.wait_status;

ticks = state.ticks;
own_namespace_rec_tid = state.own_namespace_rec_tid;
}

remote_ptr<const struct syscallbuf_record> Task::next_syscallbuf_record() {
Expand Down
1 change: 1 addition & 0 deletions src/Task.h
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,7 @@ class Task {
uint64_t cloned_file_data_offset;
ThreadLocals thread_locals;
pid_t rec_tid;
pid_t own_namespace_rec_tid;
uint32_t serial;
ThreadGroupUid tguid;
int desched_fd_child;
Expand Down

0 comments on commit e679d6a

Please sign in to comment.