Albrecht Uhlmann
|
Re: How to terminate an interrupt handling thread
|
Albrecht Uhlmann
11/16/2020 8:36 AM
post121103
|
Re: How to terminate an interrupt handling thread
Hi Gabriel,
the default for any signal handling is process termination. I would try to have this thread register a signal handler
for SIGINT. It can be empty, o just print a message.
If my understanding is correct, then when you send SIGINT particularly to this thread, it would first execute that
signal handler and then InterruptWait returns with EINTR.
But maybe there are other options. What are you actually trying to achieve? Just want to make sure that your thread is
in InterruptWait? In that case, you may get that information via DCMD to your own as entry in the proc filesystem (same
method that pidin uses).
If you give more infos to your use case maybe we can advise different idea.
Regards,
Al
|
|
|