Systemd/src
Lennart Poettering 5f41d1f10f logind: rework session shutdown logic
Simplify the shutdown logic a bit:

- Keep the session FIFO around in the PAM module, even after the session
  shutdown hook has been finished. This allows logind to track precisely
  when the PAM handler goes away.

- In the ReleaseSession() call start a timer, that will stop terminate
  the session when elapsed.

- Never fiddle with the KillMode of scopes to configure whether user
  processes should be killed or not. Instead, simply leave the scope
  units around when we terminate a session whose processes should not be
  killed.

- When killing is enabled, stop the session scope on FIFO EOF or after
  the ReleaseSession() timeout. When killing is disabled, simply tell
  PID 1 to abandon the scope.

Because the scopes stay around and hence all processes are always member
of a scope, the system shutdown logic should be more robust, as the
scopes can be shutdown as part of the usual shutdown logic.
2014-02-07 15:14:36 +01:00
..
ac-power unit: add ConditionACPower= 2012-12-31 21:24:26 +01:00
activate acticate: rename --environment to --setenv 2013-12-30 00:17:15 -05:00
analyze analyze: fix plot issues when using gummiboot 2014-01-31 07:12:43 +01:00
ask-password clients: unify how we invoke getopt_long() 2013-11-06 18:28:39 +01:00
backlight Remove duplicate includes 2013-11-18 20:28:55 -05:00
binfmt log: log_error() and friends add a newline after each line anyway, so avoid including it in the log strings 2013-12-24 16:39:37 +01:00
boot use memzero(foo, length); for all memset(foo, 0, length); calls 2014-01-31 11:55:01 +01:00
bootchart use memzero(foo, length); for all memset(foo, 0, length); calls 2014-01-31 11:55:01 +01:00
bus-driverd bus: the owner of the bus driver name as reported by the driver's 2014-01-29 21:07:50 +01:00
bus-proxyd use memzero(foo, length); for all memset(foo, 0, length); calls 2014-01-31 11:55:01 +01:00
cgls clients: unify how we invoke getopt_long() 2013-11-06 18:28:39 +01:00
cgroups-agent cgroups-agent: down-grade log level 2013-11-25 17:40:53 +01:00
cgtop build-sys: minor fixes found with cppcheck 2013-12-25 19:00:38 +01:00
compat-libs build-sys: update .pc.in files 2014-01-25 18:55:58 -05:00
core core: watch SIGCHLD more closely to track processes of units with no reliable cgroup empty notifier 2014-02-07 15:14:36 +01:00
cryptsetup cryptsetup: Support key-slot option 2014-01-26 13:24:01 +01:00
dbus1-generator dbus1-generator: use XDG_RUNTIME_DIR instead of /run/user/%lu/ 2014-01-26 18:09:24 +01:00
delta delta: ensure that d_type will be set on every fs 2014-01-09 16:43:00 +01:00
detect-virt clients: unify how we invoke getopt_long() 2013-11-06 18:28:39 +01:00
efi-boot-generator efi-boot-generator: don't mount /boot eagerly 2013-11-21 12:36:05 +01:00
fsck systemctl: simplify start_unit 2013-12-26 11:24:42 -05:00
fstab-generator fstab-generator: Do not try to fsck non-devices 2013-12-21 22:52:56 -05:00
getty-generator s390/getty-generator: initialize essential system terminals/consoles 2014-01-31 18:16:36 +01:00
gpt-auto-generator gpt-auto-generator: use EBADSLT code when unable to detect partition type 2014-01-11 16:50:09 -05:00
gudev licence: remove references to old FSF address 2012-12-17 11:41:31 +01:00
hostname bus: fix exit-on-idle for driverd 2013-12-19 22:18:39 +01:00
initctl trivial coding style clean ups 2013-12-03 22:27:45 +01:00
journal journal: Drop pkgconfig reference to libsystemd-id128. 2014-02-04 14:35:59 +01:00
kernel-install kernel-install: fix help output 2013-12-09 23:19:16 -05:00
libsystemd bus: properly unset default bus pointer when destroying last reference 2014-02-05 23:06:13 +01:00
libsystemd-daemon use memzero(foo, length); for all memset(foo, 0, length); calls 2014-01-31 11:55:01 +01:00
libsystemd-dhcp libsystemd-dhcp: Update secs field only when sending Discover 2014-01-31 12:04:51 +01:00
libudev use memzero(foo, length); for all memset(foo, 0, length); calls 2014-01-31 11:55:01 +01:00
locale bus: fix a couple of format string mistakes 2013-12-28 15:09:26 +01:00
login logind: rework session shutdown logic 2014-02-07 15:14:36 +01:00
machine Update some message formats 2014-02-05 19:00:36 -05:00
machine-id-setup clients: unify how we invoke getopt_long() 2013-11-06 18:28:39 +01:00
modules-load Remove unused variables 2014-01-05 09:16:15 -05:00
network networkd: remove unused variable 2014-02-01 16:51:35 +01:00
notify clients: unify how we invoke getopt_long() 2013-11-06 18:28:39 +01:00
nspawn nspawn: fix HAVE_SELINUX ifdef 2014-02-06 17:30:01 +01:00
nss-myhostname Remove duplicate includes 2013-11-18 20:28:55 -05:00
python-systemd util: use alloca0() intead of alloca() + memzero() 2014-01-31 17:48:36 +01:00
quotacheck util: unify reading of /proc/cmdline 2013-11-06 03:15:16 +01:00
random-seed random-seed: improve debugging messages a bit 2013-11-15 22:53:14 -05:00
rc-local-generator rc-local: use access(X_OK) to check if files are executable 2013-10-29 19:34:59 +01:00
readahead util: use alloca0() intead of alloca() + memzero() 2014-01-31 17:48:36 +01:00
remount-fs Introduce _cleanup_endmntent_ 2013-10-03 22:13:55 -04:00
reply-password Use initalization instead of explicit zeroing 2013-04-05 19:50:57 -04:00
rfkill rfkill: Avoid error when state restore is disabled 2013-12-06 16:44:38 +01:00
run nspawn: add --quiet switch for turning off any output noise 2014-02-06 00:43:14 +01:00
shared conf-parser: warn when we open configuration files with weird access bits 2014-02-03 19:59:18 +01:00
shutdownd Update some message formats 2014-02-05 19:00:36 -05:00
sleep sleep.c: fix typo 2014-01-07 21:54:28 -05:00
socket-proxy event: be more conservative when returning errors from event handler callbacks 2013-12-13 04:06:43 +01:00
sysctl Remove unused variables 2014-01-05 09:16:15 -05:00
system-update-generator Standarize on one spelling of symlink error message 2013-04-24 00:25:04 -04:00
systemctl systemctl: skip native unit file handling if sysv file handling already handled everything 2014-01-20 13:43:57 +01:00
systemd Added attribute support for sd-rtnl 2014-02-05 00:07:29 +01:00
test use memzero(foo, length); for all memset(foo, 0, length); calls 2014-01-31 11:55:01 +01:00
timedate bus: fix exit-on-idle for driverd 2013-12-19 22:18:39 +01:00
tmpfiles tmpfiles: fix memory leak of exclude_prefixes 2014-01-30 22:53:01 -05:00
tty-ask-password-agent clients: unify how we invoke getopt_long() 2013-11-06 18:28:39 +01:00
udev Update some message formats 2014-02-05 19:00:36 -05:00
update-utmp utmp: make sure we don't write the utmp reboot record twice on each boot 2014-01-30 14:18:46 +01:00
vconsole move _cleanup_ attribute in front of the type 2013-04-18 09:11:22 +02:00
.gitignore Add test coverage and generate report with lcov 2013-07-13 21:56:33 -04:00
Makefile