sandeep
sandeep

Reputation: 513

syscall() to call tkill()

Hello

is it safe to send signal to each thread of the process using tkill() linux kernel call? as it is not directly exposed, i call it using syscall().

i am refering to the link - <http://linux.die.net/man/2/tkill>.

but i dont know whether i should do certain check prior to the call (like state check or lock mutex etc..)?

Thanks Sandeep

Upvotes: 0

Views: 707

Answers (1)

gby
gby

Reputation: 15218

Just use the pthread library pthread_kill(). This is what it is for.

Upvotes: 1

Related Questions