-
Notifications
You must be signed in to change notification settings - Fork 672
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lock in test_sigaction #2375
lock in test_sigaction #2375
Conversation
ok, it does not fix the issue: |
Yeah, this is indeed something hard to deal with:< |
@SteveLauC what do you think about using a RWLock instead of the Mutex for the from my understanding of POSIX / Linux, process wide are: I think keeping the tests affecting just one thread in parallel is a good thing as it might catch some bug |
Even though the this patch presented in this PR does not fix the issue, I think we still need to grab the lock in the
Do you mean that
Do you mean to increase concurrency so that we can reproduce the bug more easily and possibly get more information? |
I want to decrease concurrency: Right now, the tests touching only the thread local signal mask do not lock SIGNAL_MTX. So we need a Mutex that can be taken exclusively, while we manipulate the whole process, or shared, while we only use |
@SteveLauC After reading the previous comment, you can close this, as it is the same as your #2381 :) |
I misread something and thought that sigsuspend would change the process signal mask - but posix 2008 and 2017 clearly say "thread", so never mind :) |
Oh I get it, I am willing to give it a try:) |
Close as it has been superseded by #2381 |
What does this PR do
sigaction is process global, i think we should lock the signal handling mutex here to serialize this test