1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 01:55:22 +03:00
Commit Graph

12946 Commits

Author SHA1 Message Date
Lennart Poettering
c5ab2e02dc device: fix typo 2013-11-25 17:59:41 +01:00
Martin Pitt
0ba696e20c udev-builtin-keyboard: More useful error message
Make the "Error calling EVIOCSKEYCODE" error message more useful by mentioning
which scan/key code it tried to set.
2013-11-25 17:44:57 +01:00
Lennart Poettering
d2bd639262 systemctl: remove debug log message 2013-11-25 17:40:54 +01:00
Lennart Poettering
dbed408b8e systemctl: when status is called without arguments show pager 2013-11-25 17:40:54 +01:00
Lennart Poettering
2c7e050f61 core: fix bus serialization of conditions 2013-11-25 17:40:54 +01:00
Lennart Poettering
4d4c80d073 core: fix serialization of exec command structs 2013-11-25 17:40:53 +01:00
Lennart Poettering
290837072b core: set some event source priorities to enforce dispatching order 2013-11-25 17:40:53 +01:00
Lennart Poettering
5bcb0f2ba0 swap: split state machine state ACTIVATING into two
We expect the event on /proc/swaps before we expect the SIGCHILD,
reflect this in the state machine.
2013-11-25 17:40:53 +01:00
Lennart Poettering
f1421cc67d device: modernizations 2013-11-25 17:40:53 +01:00
Lennart Poettering
752b590500 core: dispatch run queue only if there's nothing else to do
Always read all external events before we decide what we do next.
2013-11-25 17:40:53 +01:00
Lennart Poettering
844de43555 cgroups-agent: down-grade log level 2013-11-25 17:40:53 +01:00
Tom Gundersen
d2df0d0ed3 udev: net_setup_link - don't use Description as Alias
Use Description only internally, and allow Alias to be set
as a separate option. For instance SNMP uses ifalias for
a specific purpose, so let's not write to it by default.
2013-11-25 14:53:56 +01:00
Lukas Nykryn
517dcac840 Revert "man: suggest using hash= atribut for swap in example"
This reverts commit fa7abba232.
2013-11-25 09:31:09 +01:00
David Strauss
2af29c881a socket-proxyd: Fix man page because --listener takes an argument. 2013-11-25 10:58:13 +10:00
David Strauss
adcf4c81c5 socket-proxyd: Add --listener option for listener/destination pairs. 2013-11-25 10:46:48 +10:00
Kay Sievers
828db5d84a core: set finish_timestamp only after all jobs have finished 2013-11-24 19:18:36 +01:00
Tom Gundersen
a553fd32d1 networkd: fix build
Forgot to 'git add'...
2013-11-23 02:47:12 +01:00
Tom Gundersen
4b6141c424 networkd: use Type=notify
Also start earlier during boot.
2013-11-23 02:07:08 +01:00
David Strauss
bfe76ec3ce Update TODO 2013-11-23 07:55:37 +10:00
Lennart Poettering
edb5dd1875 bus: protected dual timestamp property macro for misusage 2013-11-22 20:19:54 +01:00
Lennart Poettering
39abcaee3e core: don't warn loudly if we cannot send a bus signal to a disconnected client 2013-11-22 20:19:27 +01:00
Lennart Poettering
dbc2c080de systemctl: indicate in list-dependencies whether a unit is already running 2013-11-22 19:27:56 +01:00
Lennart Poettering
92c1622e14 service: honour that for services RestartSec=0 means immediate restarts but TimeoutSec= means no timing out at all 2013-11-22 19:27:56 +01:00
Lennart Poettering
66ca4ec48a job: fix serialization 2013-11-22 19:27:56 +01:00
David Strauss
21acf11d40 cgroups: Fix test service inclusion in Makefile 2013-11-23 02:49:05 +10:00
Lennart Poettering
0e586eae02 bus: when closing a bus, drop all refs to queued messages, so that the bus can be freed 2013-11-22 16:31:40 +01:00
Lennart Poettering
dc0218d267 man: simplify socket-proxyd examples 2013-11-22 16:31:40 +01:00
Lennart Poettering
baabc57764 build-sys: move more files from core/ to share/ that are generic enough 2013-11-22 16:31:40 +01:00
Kay Sievers
254ed85a8c test: test-sched-prio - skip if XDG_RUNTIME_DIR is not set
=================================
No control group support available, not creating root group.

Failed to determine XDG_RUNTIME_DIR

Assertion 'r >= 0' failed at src/test/test-sched-prio.c:42, function main(). Aborting.
=================================
2013-11-22 15:58:39 +01:00
Lukasz Skalski
ab9cbe342e macro: fix problem with __LINE__ macro expansion
David:
I already applied a fix for that, but this patch definitely looks nicer. I
changed CONCATENATE_HELPER() -> XCONCATENATE() similar to XSTRINGIFY and
added the UNIQUE() helper.
2013-11-22 14:44:45 +01:00
Kay Sievers
128c3c5881 core: fix timestamp assignment 2013-11-22 13:56:27 +01:00
David Herrmann
b5be11e823 macro: fix assert_cc() fallback
We need two-level macro-expansion, otherwise __LINE__ will not get
evaluated.
2013-11-22 09:19:00 +01:00
Marcel Holtmann
5476ad087c hwdb: Update database of Bluetooth company identifiers 2013-11-21 19:47:56 -08:00
Lennart Poettering
780896a4f1 bus: rework sd_bus_error APIs
All calls that set a sd_bus_error structure will now return the same
error converted to a negative errno. This may be used as syntactic sugar
to return from a function and setting a bus_error structure in one go.

Also, translate all Linux Exyz (EIO, EINVAL, EUCLEAN, EPIPE, ...)
automatically into counterparts in the (new) "Posix.Error." namespace.

If we fail to allocate memory for the components of a sd_bus_error
automatically reset it to an OOM error which we always can write.
2013-11-22 04:23:22 +01:00
David Strauss
6414b7c981 cgroups: Cache controller masks and optimize queues. 2013-11-22 11:22:47 +10:00
Lennart Poettering
52c7f2b2d5 bus: deal with duplicate values from enumerators 2013-11-22 01:57:30 +01:00
Lennart Poettering
adcc4ca30d event: rename sd_event_get() to sd_event_source_get_event() 2013-11-22 01:42:15 +01:00
Lennart Poettering
2be441769f bus: add calls to query attached objects 2013-11-22 01:42:15 +01:00
Lennart Poettering
f00c31213a bus: also add error parameter to object find and enumerator callbacks
Just in order to bring things inline with the method and property
callbacks.
2013-11-22 01:42:15 +01:00
Lennart Poettering
969987ea93 bus: restore selinux access control to PID 1 for properties 2013-11-21 23:36:51 +01:00
Lennart Poettering
9f5eb56a13 timer: make timer accuracy configurable
And make it default to 1min
2013-11-21 22:08:20 +01:00
Kay Sievers
b850b06e1e build-sys: enable gcc Link Time Optimization when optimization is enabled 2013-11-21 21:56:18 +01:00
Lennart Poettering
92b315dfb4 core: actually make SwitchRoot() bus call do the deed 2013-11-21 21:36:04 +01:00
Lennart Poettering
1302759d15 core: fix serilization of ListJobs() response 2013-11-21 21:32:23 +01:00
Lennart Poettering
ceb19081fe core: fix serialization of client tracker 2013-11-21 21:18:02 +01:00
Lennart Poettering
6ce270b10a core: fix deserialization of StartTransientUnit() parameters 2013-11-21 21:12:36 +01:00
Lennart Poettering
21586b77de bus: properly serialize unit file change list 2013-11-21 21:12:36 +01:00
Lennart Poettering
86b8d28971 logind,machined,run: properly invoke StartTransientUnit() bus call 2013-11-21 21:12:36 +01:00
Lennart Poettering
ebcf1f97de bus: rework message handlers to always take an error argument
Message handler callbacks can be simplified drastically if the
dispatcher automatically replies to method calls if errors are returned.

Thus: add an sd_bus_error argument to all message handlers. When we
dispatch a message handler and it returns negative or a set sd_bus_error
we send this as message error back to the client. This means errors
returned by handlers by default are given back to clients instead of
rippling all the way up to the event loop, which is desirable to make
things robust.

As a side-effect we can now easily turn the SELinux checks into normal
function calls, since the method call dispatcher will generate the right
error replies automatically now.

Also, make sure we always pass the error structure to all property and
method handlers as last argument to follow the usual style of passing
variables for return values as last argument.
2013-11-21 21:12:36 +01:00
Lennart Poettering
0ccad099d4 hostnamed: modernizations 2013-11-21 21:12:36 +01:00