--=_courier-5629-1050600823-0001-2
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
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=20
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.
--=20
Servus,
Daniel
--=_courier-5629-1050600823-0001-2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Transfer-Encoding: 7bit
Content-Description: Dies ist ein digital signierter Nachrichtenteil
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQA+nuS7chlzsq9KoIYRAlDBAJ45/yxGtg3F9jme/NpxoixUAtsofACgrzNO
ffODU8MLZabKxFeogG+exbc=
=zhnI
-----END PGP SIGNATURE-----
--=_courier-5629-1050600823-0001-2--