ptrace and threads ptrace and threads multithreading multithreading

ptrace and threads


Finally, I've found the solution myself: I got the signals from all the threads by calling

waitpid(-1, &status, __WALL)

instead of

waitpid(-1, &status, 0)