Linux kernel module programming(Signal and semaphore)
I have a doubt regarding signals and semaphores.
When a process is executing in kernel mode it takes a semaphore1 and waiting for another semaphore2. It enters into pended state. At that instant another process sends a signal to it and terminates the process1.
What about the semaphore 1?
Is it reclaimed automatically? or Is it possible to terminate a process waiting for a kernel resource in kernel mode?
Please reply me.