summaryrefslogtreecommitdiff
path: root/src/cgroups-agent/cgroups-agent.c
Commit message (Collapse)AuthorAge
* sd-bus: introduce new sd_bus_flush_close_unref() callLennart Poettering2017-03-14
| | | | | | | | | | | | | | | | sd_bus_flush_close_unref() is a call that simply combines sd_bus_flush() (which writes all unwritten messages out) + sd_bus_close() (which terminates the connection, releasing all unread messages) + sd_bus_unref() (which frees the connection). The combination of this call is used pretty frequently in systemd tools right before exiting, and should also be relevant for most external clients, and is hence useful to cover in a call of its own. Previously the combination of the three calls was already done in the _cleanup_bus_close_unref_ macro, but this was only available internally. Also see #327
* Classify processes from sessions into cgroupsAndy Wingo2016-03-06
| | | | | | | Create a private cgroup tree associated with no controllers, and use it to map PIDs to sessions. Since we use our own path structure, remove internal cgroup-related helpers that interpret the cgroup path structure to pull out users, slices, and scopes.
* Revert "Remove src/cgroups-agent"Andy Wingo2016-03-06
| | | | This reverts commit 024e2f0da33fa05f4d5aa696e9f715264e9cd41f.
* Remove src/cgroups-agentAndy Wingo2015-04-19
|
* treewide: no need to negate errno for log_*_errno()Michal Schmidt2014-11-28
| | | | It corrrectly handles both positive and negative errno values.
* treewide: auto-convert the simple cases to log_*_errno()Michal Schmidt2014-11-28
| | | | | | | | | | | | | As a followup to 086891e5c1 "log: add an "error" parameter to all low-level logging calls and intrdouce log_error_errno() as log calls that take error numbers", use sed to convert the simple cases to use the new macros: find . -name '*.[ch]' | xargs sed -r -i -e \ 's/log_(debug|info|notice|warning|error|emergency)\("(.*)%s"(.*), strerror\(-([a-zA-Z_]+)\)\);/log_\1_errno(-\4, "\2%m"\3);/' Multi-line log_*() invocations are not covered. And we also should add log_unit_*_errno().
* bus: always explicitly close bus from main programsLennart Poettering2014-08-04
| | | | | | | | | | | | | | Since b5eca3a2059f9399d1dc52cbcf9698674c4b1cf0 we don't attempt to GC busses anymore when unsent messages remain that keep their reference, when they otherwise are not referenced anymore. This means that if we explicitly want connections to go away, we need to close them. With this change we will no do so explicitly wherver we connect to the bus from a main program (and thus know when the bus connection should go away), or when we create a private bus connection, that really should go away after our use. This fixes connection leaks in the NSS and PAM modules.
* cgroups-agent: down-grade log levelLennart Poettering2013-11-25
|
* bus: move ssh support into public API of libsystem-busLennart Poettering2013-10-30
|
* cgroup-agent: port to sd-busTom Gundersen2013-10-18
|
* cgroups-agent: remove ancient fallback code; turn connection error into warningKay Sievers2013-07-04
| | | | | | During re-execution and shutdown cgroups agents might not be able to connect to systemd's private D-Bus socket, the printed error to the console is misleding in that case, so turn it into a warning.
* build-sys: rename LEGACY to NOLEGACY to better reflect meaningDavid Coppa2013-07-03
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=66542
* move all tools to subdirsKay Sievers2012-04-12