Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/bthread/task_tracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,6 @@ TaskTracer::Result TaskTracer::SignalTrace(pthread_t worker_tid) {
return Result::MakeErrorResult("Fail to pthread_sigqueue: %s", berror());
}
}
_inuse_signal_syncs.push_back(signal_sync);

// Wait for the signal handler to complete.
butil::Timer timer;
Expand All @@ -435,13 +434,14 @@ TaskTracer::Result TaskTracer::SignalTrace(pthread_t worker_tid) {
if (EINTR == errno) {
continue;
}
// Extend the lifetime of `signal_sync' to
// avoid it being destroyed in the signal handler.
_inuse_signal_syncs.push_back(signal_sync);
Comment thread
chenBright marked this conversation as resolved.
return Result::MakeErrorResult("Fail to poll: %s", berror());
}
break;
}
// Remove the successful SignalSync.
_inuse_signal_syncs.pop_back();


return signal_sync->result;
}

Expand Down
Loading