On Wed, 27.07.11 16:56, James Antill (james(a)fedoraproject.org) wrote:
> > It looks more like the first victim of systemd using
cgroups as a
> > replacement for setsid() etc. ... pam_systemd being the first return
> > volley in that war. *sigh*.
>
> systemd is not using cgroups as replacement for setsid().
And then you go on to explain how pam_systemd is required so that it
can do the setsid() like "remove me from the session" call ... and thus.
not get hit with the kill() sent to the previous session.
I'm not saying that cgroups doesn't do _other_ things as well ... but
using it as a shiner setsid() is just doomed to a war where everyone
puts "cgroup calls" where setsid() calls currently are.
setsid() is primarily a call to implement job control in shells.
systemd is not involved in job control in shells. Never has, never will
be.
Lennart
--
Lennart Poettering - Red Hat, Inc.