Hi,
I am working on RH9 with kernel 2.4.20-31.9smp
I have a process "A" spawning thread "B". (using pthreads)
ps -aefm | grep "A" gives me two pids, one of "A" and one of "B"
When I send a signal to pid-B, it is actually delivered to "A". (I know this because I have my hook in sys_kill)
Is this always the case ? Can I not send a signal directly to a thread (not the main thread) ?
If there is some transformation of converting and sending the signal to thread group leader, who does this transformation ? Kernel ? Libc ? shell ? ....
Please assist.
Thanks,
Peyush