Commits on Source (3)
-
Dominik Karol Piątkowski authored
Due to the fact that `pthread_kill(thread, SIGINT)` results in SIGINTing all of the threads - including main thread - by default, testcases that send SIGINT to debugger thread are crashing. Introduce SIGINT signal handler for debugger thread to fix this. v2: Initialize sigaction (Mika) Signed-off-by:
Dominik Karol Piątkowski <dominik.karol.piatkowski@intel.com> Reviewed-by:
Mika Kuoppala <mika.kuoppala@linux.intel.com>
-
Dominik Karol Piątkowski authored
After `token_signal(c->p_in, CLIENT_STOP, c->pid)`, the client is expected to end its work and exit. By the time the waitpid() is called, the client process may be gone already, resulting in a failed assert. Fix it by skipping the assert in case of errno being ECHILD, meaning the process already exited. Signed-off-by:
Dominik Karol Piątkowski <dominik.karol.piatkowski@intel.com> Reviewed-by:
Mika Kuoppala <mika.kuoppala@linux.intel.com>
-
Dominik Karol Piątkowski authored
Add a test that sends SIGINT to the debugger thread with random timing and checks if nothing breaks, exercising the scenario multiple times. v2: Count correctly timed SIGINTs and assert that they happened (Mika) v3: Move loop_count increment outside macro (Mika) Signed-off-by:
Dominik Karol Piątkowski <dominik.karol.piatkowski@intel.com> Reviewed-by:
Mika Kuoppala <mika.kuoppala@linux.intel.com>