pthread_kill SIGINT SIG_DFL multithread# Unix - 噫吁兮,危乎高哉
b*s
1 楼
In a multithread task, sigset(SIGINT, SIG_DFL) is called. then one thread
sends SIGINT through pthread_kill() to the other thread.
Why the receiving thread is not terminated? Thanks a lot,
The receiving thread got EINTR if it is in read() system call since read()
returns -1.
What if recieving thread in an empty while loop.
sends SIGINT through pthread_kill() to the other thread.
Why the receiving thread is not terminated? Thanks a lot,
The receiving thread got EINTR if it is in read() system call since read()
returns -1.
What if recieving thread in an empty while loop.