* 2.5: daemonize() playing tricks with ttys?
@ 2003-04-20 21:59 Daniel Egger
0 siblings, 0 replies; only message in thread
From: Daniel Egger @ 2003-04-20 21:59 UTC (permalink / raw)
To: Linux Kernel Mailinglist
[-- Attachment #1: Type: text/plain, Size: 755 bytes --]
Hija,
I'm trying to spawn new threads from a function called from alloc_uid
using daemonize () as soon as a new user appears on the system. Somehow
this detaches the original shell from the tty causing an exit not
only of the child but also it's parent.
A diagram of the situation would lock like this:
getty -> (login of root) bash -> (su to another user) bash ->
[new thread is spawned] (whatever) -> exit -> getty
Alternativly, when directly logging in a non-root user:
getty -> (login of foo) motd -> [hang]
How can I daemonize something without disturbing other processes?
I already tried playing with reparent_to_init and some signal stuff
as done by other parts of the kernel but to no avail.
--
Servus,
Daniel
[-- Attachment #2: Dies ist ein digital signierter Nachrichtenteil --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-04-20 21:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-20 21:59 2.5: daemonize() playing tricks with ttys? Daniel Egger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox