public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* kernel_thread vs. zombie
@ 2001-03-22 11:49 Benjamin Herrenschmidt
  2001-03-22 14:32 ` Martin Frey
  0 siblings, 1 reply; 11+ messages in thread
From: Benjamin Herrenschmidt @ 2001-03-22 11:49 UTC (permalink / raw)
  To: linux-kernel

Hi !

I'm changing the ADB bus reset & probe code to be in a kernel threads
that is created when a bus reset is triggered and that dies of it's own
death. 

Everything is fine when the bus reset is triggered during kernel init as
my thread is a child of init. However, when created as a result of an
ioctl, the thread becomes a zombie as it's a child of the process who
caused the ioctl (typically when entering sleep mode).

How do I force a kernel thread to always be a child of init and never
become a zombie ?

I do call daemonize at the beginning of the thread (as it won't do
anything with files, signals or whatever), but that doesn't seem to be enough.

Reagrds,
Ben.




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2001-03-23 14:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-22 11:49 kernel_thread vs. zombie Benjamin Herrenschmidt
2001-03-22 14:32 ` Martin Frey
2001-03-22 15:07   ` Benjamin Herrenschmidt
2001-03-22 17:21     ` Martin Frey
2001-03-22 18:47       ` Benjamin Herrenschmidt
2001-03-22 19:50         ` Martin Frey
2001-03-22 23:33           ` Benjamin Herrenschmidt
2001-03-23  0:04             ` Andrew Morton
2001-03-23  1:57               ` Martin Frey
2001-03-23  2:13                 ` Andrew Morton
2001-03-23  8:06                   ` Martin Frey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox