Re: Unkillable Process

Arjan van de Ven (root@fenrus.demon.nl)
Wed, 11 Aug 1999 22:41:04 +0200


Hi,
> I am using a call to kernel_thread to create a process from within a
> system call. This process loops forever doing something, and waits for a
> semaphore inside the loop using down_interruptible(). I am having a hard
> time killing this process using "kill -" TERM or 9,

As soon as your thread is sent a signal, the down_interruptible should fall
through. The only thing you have to do is break out of YOUR loop when
signal_pending(current) is true.

Greetings,
Arjan van de Ven

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/