CodeZHXS opened a new issue, #3038:
URL: https://github.com/apache/brpc/issues/3038

   **Describe the bug**
   In `TaskTracer::SignalTrace`, we use `sigqueue` to send `SIGURG` to 
`worker_tid`. This may not be correct. 
   
   In fact, although the type of `worker_tid` is `pid_t`, It is actually the id 
of the LWP(Light Weight Process). If we use `sigqueue`, `SIGURG` will send to 
current process. Then os will select one of the threads to handle this signal. 
This is not what we want. We hope that only the worker thread corresponding to 
the `TaskGroup` receives this signal.
   
   We can use the `rt_tgsigqueueinfo`, this syscall can achieve our goal.
   
   Here is the relevant 
documentation:[https://linux.die.net/man/2/rt_sigqueueinfo](https://linux.die.net/man/2/rt_sigqueueinfo)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to