Signals to threads

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Title: Signals to threads

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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux