1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 19:21:53 +03:00
Commit Graph

11292 Commits

Author SHA1 Message Date
Lennart Poettering
beca33eef4 bus: make sure things still compile fine without valgrind's headers installed 2013-04-12 02:21:57 +02:00
Lennart Poettering
7211f918ba bus: make the kdbus code valgrind clean 2013-04-12 02:19:26 +02:00
Lennart Poettering
acb5a3cb20 bus: parse and expose kdbus message timestamps 2013-04-12 01:57:53 +02:00
Lennart Poettering
8323bc1f90 bus: also parse PID starttime out of kdbus message 2013-04-12 01:49:52 +02:00
Lennart Poettering
f9be01f3b4 bus: parse uid/gid/pid/tid meta data from kdbus messages 2013-04-12 01:45:18 +02:00
Lennart Poettering
e9a967f9a0 bus: make kdbus work so that we can exchange real messages
We have ignition, we have tremendous fire!
2013-04-12 01:19:32 +02:00
Zbigniew Jędrzejewski-Szmek
8e2f9ebf28 hwclock: use _cleanup_ to simplify function 2013-04-11 19:13:18 -04:00
Zbigniew Jędrzejewski-Szmek
bcb161b023 errno is positive
Make sure we compare errno against positive error codes.
The ones in hwclock.c and install.c can have an impact, the
rest are unlikely to be hit or in code that isn't widely
used.

Also check that errno > 0, to help gcc know that we are
returning a negative error code.
2013-04-11 19:13:18 -04:00
Zbigniew Jędrzejewski-Szmek
0ad4e1a872 systemctl: show the name of failing unit in red
It makes it easier to pick out problematic unit
names from a long list.
2013-04-11 19:13:17 -04:00
Zbigniew Jędrzejewski-Szmek
20b3f379cf systemctl: allow multiple arguments to --type
This mirrors --property, and is generally useful.

New functionality is used in bash completion.

In case of zsh completion, new functionality is less useful
because of caching. Nevertheless, zsh completion for restart
is made to behave more-or-less the same as bash completion.
At least sockets can be restarted.
2013-04-11 19:11:52 -04:00
Lennart Poettering
296f3c53cb bus: fix formatting of bus address 2013-04-12 00:43:57 +02:00
Lennart Poettering
b4da268999 bus: fix kdbus ioctl invocation 2013-04-12 00:43:42 +02:00
Lennart Poettering
c320885c9f bus: properly check if kdbus connection worked 2013-04-12 00:43:29 +02:00
Lennart Poettering
de2975759d bus: fill in unique name when using kdbus 2013-04-12 00:43:12 +02:00
Lennart Poettering
dd418b9a69 bus: add kdbus test case 2013-04-12 00:26:12 +02:00
Lennart Poettering
6629161f82 bus: basic implementation of kdbus client side 2013-04-11 23:10:41 +02:00
Lennart Poettering
4cda0f2116 update TODO 2013-04-11 23:10:41 +02:00
Lennart Poettering
2100fa1099 bus: calculate iovec for messages only when we need it 2013-04-11 23:10:40 +02:00
Lennart Poettering
9be9c7cff6 macro: make sure ALIGN() can be calculated constant by the compiler
If we pass a constant value to ALIGN() gcc should have the chance to
calculate the value during compilation rather than runtime, so let's
avoid a static inline call if we can.
2013-04-11 23:10:40 +02:00
Kay Sievers
3fd0bd432d TODO: update 2013-04-11 19:56:34 +02:00
Zbigniew Jędrzejewski-Szmek
c2e09812e9 shell-completion: show failed units as candidates for start
Also show disabled units as candidates for reenable,
since it works and one may want to do enable-or-reenable
in one line.
2013-04-10 19:47:21 -04:00
Zbigniew Jędrzejewski-Szmek
79c1638303 shell-completion: replace printf with echo
It is faster to use a bash built-in, then to invoke an external
program. The problem of unit names starting with a dash is solved
by prepending a space. Spaces are ignored anyway.

For zsh, replace echo "$unit", which is vulnerable to dashes,
with echo " $unit".
2013-04-10 19:47:16 -04:00
Zbigniew Jędrzejewski-Szmek
75add28aa1 systemctl: ellipsize job list only when necessary, highlight running
I was debugging systemd waiting on a missing disk, and noticed
that the job listing could use some polishing. Jobs that are
actually running are highlighted, so it's easier to see what
very actually waiting for.

Also, the needed widths are precalculated, to use available columns
more ecomically.
2013-04-10 19:46:49 -04:00
Zbigniew Jędrzejewski-Szmek
b8a2b0f76b udev/ata_id: use initalization instead of explicit zeroing 2013-04-10 18:59:42 -04:00
Lukas Nykryn
4d3a5b1088 libsystemd-bus: initalize handle_cmsg to false 2013-04-10 18:59:42 -04:00
Lukas Nykryn
cb90460e04 tty-ask-password-agent: free passwords 2013-04-10 18:59:42 -04:00
Lukas Nykryn
3a819b1b62 journalctl: check return of strjoin 2013-04-10 18:59:42 -04:00
Zbigniew Jędrzejewski-Szmek
1c6330456c Use initalization instead of explicit zeroing in more places 2013-04-10 18:59:42 -04:00
Lennart Poettering
0affed79d2 localctl: skip locale entries with non-UTF8 names
glibc should place these in the locale archive. For now, let's just skip
them from our output, since they are aliases anyway.

https://bugs.freedesktop.org/show_bug.cgi?id=63389
2013-04-10 23:23:19 +02:00
Lennart Poettering
1ef2af5ae0 bus: when we unmarshal an fd it should stay owned by the message object
If the user wants the fd to stay valid he should keep a reference to the
message object or duplicate the fd.

This unifies behaviour of demarshalling data fields and unix fds.
2013-04-10 23:23:19 +02:00
Fedora systemd team
50fb97935d logind: avoid creating stale session state files
There were old session state files accumulating in /run/systemd/session.
They confused e.g. "reboot", which thought there were still users logged
in. The files got created like this:

session_stop(Session *s) ->
        ...
        unlink(s->state_file);
        ...
        seat_set_active(s->seat, NULL) ->
                session_save(...);  /* re-creates the state file we just
                                       unlinked */

Fix it simply by clearing the s->started flag earlier to prevent
any further writes of the state file (session_save() checks the flag).
2013-04-10 11:36:59 +02:00
Lennart Poettering
b8b4d3dddc update TODO 2013-04-09 22:20:05 +02:00
Lennart Poettering
e2acb67baa logind: introduce an explicit session class for cronjobs and similar
cronjobs are neither interactive user session, nor lock screens, nor
login screens, hence they should get their own class.
2013-04-09 22:18:16 +02:00
Lennart Poettering
05d0c3e1fd update TODO 2013-04-09 21:31:16 +02:00
Lennart Poettering
1b492614cb bus: also remove recursive invocation of message_append_ap() 2013-04-09 21:28:11 +02:00
Lennart Poettering
fe1d424d29 bus: implement message_read_ap() non-recursively
As it turns out if you pass a va_list to a function its state becomes
undefined after that function returns, and this actually does break on
x86-32.

Hence, let's reimplement message_read_ap() without the use of recursion.
Instead we now build our own stack of types in an array so that we can
decode the entire parameter list in a single stackframe.
2013-04-09 21:03:12 +02:00
Lennart Poettering
8df31a9c98 units: fix some left-over mentions of remote-fs-setup.target 2013-04-09 19:05:49 +02:00
Lennart Poettering
30d743f430 shutdown: print a nice message before returning to initrd 2013-04-09 18:29:33 +02:00
Martin Pitt
c8f5f5e728 keymap: Fix typo in previous commit 2013-04-09 15:44:41 +02:00
Pali Rohar
72bd03c636 keymap: Add HP EliteBook 8460p
Taken from
https://code.launchpad.net/~pali/ubuntu/raring/udev/hp-elitebook-8460p/+merge/157420

Signed-off-by: Martin Pitt <martinpitt@gnome.org>
2013-04-09 15:32:22 +02:00
Michael Biebl
e712ffcce6 libudev: Move -lrt to Libs.private
It's only needed for static linking.

https://bugs.freedesktop.org/show_bug.cgi?id=63309
2013-04-09 15:26:39 +02:00
Lennart Poettering
4b73a0c061 machine-id: fix missing initialization 2013-04-08 22:46:56 +02:00
Lennart Poettering
d3a86981d1 build-sys: prepare 201 2013-04-08 22:24:19 +02:00
Lennart Poettering
5989dbb233 shutdown: print a message when storage is finalized 2013-04-08 21:22:14 +02:00
Lennart Poettering
c4aa09b06f journald: bring max coredump size in sync with max entry size 2013-04-08 20:35:26 +02:00
Lennart Poettering
3df82d5a8c update TODO 2013-04-08 20:35:25 +02:00
Lennart Poettering
2d76d14ea3 cgroup: clean-ups 2013-04-08 20:35:25 +02:00
Lennart Poettering
816f25e86a analyze: various cleanups 2013-04-08 20:35:25 +02:00
Lennart Poettering
903a0b07e0 analyze: fix OOM handling + fix memory leak 2013-04-08 20:35:25 +02:00
Lennart Poettering
f5b7a3fb53 analyze: add missing --help text entries 2013-04-08 20:35:25 +02:00