Joining another session: how to do it?

Is it possible for a process launched from a session other than 0th to
join the session 0 (or any other existing one)?

Tony.

Tony <mts.spb.suxx@mail.ru> wrote:

Is it possible for a process launched from a session other than 0th to
join the session 0 (or any other existing one)?

I THINK that if you join a process group that is in session 0, you
will end up in session 0.

Usually this is done by forking(), and having the parent exit. (That
way you’re not a process group leader, as a process group leader
can’t join another process group), then joining the process group
of Proc32 – that is process group 1.

-David

David Gibbs
QNX Training Services
dagibbs@qnx.com