chiark / gitweb /
elogind.git
10 years agodelta: fix delta for drop-ins
Zbigniew Jędrzejewski-Szmek [Mon, 23 Dec 2013 00:45:02 +0000 (19:45 -0500)]
delta: fix delta for drop-ins

Also, fix highlighting, add more debug statements, make const tables
static and global, run path_kill_slashes only at entry.

10 years agobus: make sure to request peer cred only after connect(), not before
Lennart Poettering [Mon, 23 Dec 2013 02:43:43 +0000 (03:43 +0100)]
bus: make sure to request peer cred only after connect(), not before

10 years agobus: always talk to the full dbus driver object
Lennart Poettering [Mon, 23 Dec 2013 02:30:41 +0000 (03:30 +0100)]
bus: always talk to the full dbus driver object

10 years agobus-proxyd: synthesize NameAcquire/NameLost signals for socket clients
Lennart Poettering [Mon, 23 Dec 2013 01:59:03 +0000 (02:59 +0100)]
bus-proxyd: synthesize NameAcquire/NameLost signals for socket clients

10 years agoupdate TODO
Lennart Poettering [Mon, 23 Dec 2013 01:08:12 +0000 (02:08 +0100)]
update TODO

10 years agobus: use memcpy() rather than unbounded strcpy()
Lennart Poettering [Mon, 23 Dec 2013 01:08:05 +0000 (02:08 +0100)]
bus: use memcpy() rather than unbounded strcpy()

10 years agobus: switch kdbus bloom filter over to SipHash (from MurmurHash3)
Lennart Poettering [Sun, 22 Dec 2013 22:26:07 +0000 (23:26 +0100)]
bus: switch kdbus bloom filter over to SipHash (from MurmurHash3)

Let's try to standardize on a single non-cryptographic hash algorithm,
and for that SipHash appears to be the best answer.

With this change there are two other hash functions left in systemd: an
older version of MurmurHash embedded into libudev for the bloom filters
in udev messages (which is hard to update, given that the we probably
should stay compatible with older versions of the library). And lookup3
in the journal files (which we could replace for new files, but which is
probably not worth the work).

10 years agolibudev: ship the original MurmurHash2.[ch] file
Kay Sievers [Mon, 23 Dec 2013 01:46:39 +0000 (02:46 +0100)]
libudev: ship the original MurmurHash2.[ch] file

10 years agologinctl: fix output of type with class
Mantas Mikulėnas [Sun, 22 Dec 2013 05:22:46 +0000 (07:22 +0200)]
loginctl: fix output of type with class

10 years agoFix extraction of _SYSTEMD_USER_UNIT
Zbigniew Jędrzejewski-Szmek [Sun, 22 Dec 2013 23:28:03 +0000 (18:28 -0500)]
Fix extraction of _SYSTEMD_USER_UNIT

Units from user services underneath user@.service would not be detected
properly.

10 years agosystemctl: also color filenames of drop-ins in cat
Zbigniew Jędrzejewski-Szmek [Sun, 22 Dec 2013 21:11:45 +0000 (16:11 -0500)]
systemctl: also color filenames of drop-ins in cat

10 years agosd-daemon: introduce sd_watchdog_enabled() for parsing $WATCHDOG_USEC
Lennart Poettering [Sun, 22 Dec 2013 21:14:05 +0000 (22:14 +0100)]
sd-daemon: introduce sd_watchdog_enabled() for parsing $WATCHDOG_USEC

Also, introduce a new environment variable named $WATCHDOG_PID which
cotnains the PID of the process that is supposed to send the keep-alive
events. This is similar how $LISTEN_FDS and $LISTEN_PID work together,
and protects against confusing processes further down the process tree
due to inherited environment.

10 years agojournal: when we shall go down do so cleanly
Lennart Poettering [Sun, 22 Dec 2013 20:10:06 +0000 (21:10 +0100)]
journal: when we shall go down do so cleanly

10 years agoshared: switch our hash table implementation over to SipHash
Lennart Poettering [Sun, 22 Dec 2013 18:59:12 +0000 (19:59 +0100)]
shared: switch our hash table implementation over to SipHash

SipHash appears to be the new gold standard for hashing smaller strings
for hashtables these days, so let's make use of it.

10 years agobus: also take write queue into consideration in sd_bus_try_close()
Lennart Poettering [Sun, 22 Dec 2013 18:50:07 +0000 (19:50 +0100)]
bus: also take write queue into consideration in sd_bus_try_close()

10 years agocore: the cgroup properties are not actually const
Lennart Poettering [Sun, 22 Dec 2013 18:44:04 +0000 (19:44 +0100)]
core: the cgroup properties are not actually const

10 years agohwdb: update
Marcel Holtmann [Sun, 22 Dec 2013 19:32:11 +0000 (11:32 -0800)]
hwdb: update

10 years agohwdb: Add SDIO database to ids-update.pl script
Marcel Holtmann [Sun, 22 Dec 2013 19:30:57 +0000 (11:30 -0800)]
hwdb: Add SDIO database to ids-update.pl script

10 years agohwdb: Add SDIO Bluetooth and WiFi devices from Marvell
Marcel Holtmann [Sun, 22 Dec 2013 19:20:53 +0000 (11:20 -0800)]
hwdb: Add SDIO Bluetooth and WiFi devices from Marvell

10 years agohwdb: Add SDIO products from GCT and CSR
Marcel Holtmann [Sun, 22 Dec 2013 19:08:50 +0000 (11:08 -0800)]
hwdb: Add SDIO products from GCT and CSR

10 years agohwdb: Add SDIO WLAN devices from ST-Ericsson and TI
Marcel Holtmann [Sun, 22 Dec 2013 18:58:30 +0000 (10:58 -0800)]
hwdb: Add SDIO WLAN devices from ST-Ericsson and TI

10 years agohwdb: Correct SDIO vendor identifier for Broadcom
Marcel Holtmann [Sun, 22 Dec 2013 18:49:08 +0000 (10:49 -0800)]
hwdb: Correct SDIO vendor identifier for Broadcom

10 years agohwdb: Add SDIO device information for Broadcom B43 based cards
Marcel Holtmann [Sun, 22 Dec 2013 18:46:13 +0000 (10:46 -0800)]
hwdb: Add SDIO device information for Broadcom B43 based cards

10 years agohwdb: Add some known SDIO device identification strings
Marcel Holtmann [Sun, 22 Dec 2013 18:33:25 +0000 (10:33 -0800)]
hwdb: Add some known SDIO device identification strings

10 years agohwddb: Add database for SDIO vendor and class information
Marcel Holtmann [Sun, 22 Dec 2013 18:21:20 +0000 (10:21 -0800)]
hwddb: Add database for SDIO vendor and class information

10 years agoRevert "bus-proxyd: use a loop instead of c&p"
Kay Sievers [Sun, 22 Dec 2013 15:41:24 +0000 (16:41 +0100)]
Revert "bus-proxyd: use a loop instead of c&p"

This reverts commit 9818fa6d6d32d87a3e1b96934a54523ea6b02879.

The proxy does not work anymore with this patch.

10 years agoman: fix make install
Marc-Antoine Perennou [Sun, 22 Dec 2013 08:47:42 +0000 (17:47 +0900)]
man: fix make install

commit 5b04fe60004e7c5cd5a43648ede3e6a965e70b8c broke it with
‘./man/sd_session_is_remote.3’: No such file or directory

10 years agolibsystemd-dhcp: add some asserts
Tom Gundersen [Wed, 18 Dec 2013 09:52:22 +0000 (10:52 +0100)]
libsystemd-dhcp: add some asserts

10 years agolibsystemd-dhcp: Handle T2 Rebinding timeout
Patrik Flykt [Fri, 20 Dec 2013 15:16:20 +0000 (17:16 +0200)]
libsystemd-dhcp: Handle T2 Rebinding timeout

Reuse existing functionality when adding T2 Rebinding support.

10 years agolibsystemd-dhcp: Factor out common code initializing events
Patrik Flykt [Fri, 20 Dec 2013 15:16:19 +0000 (17:16 +0200)]
libsystemd-dhcp: Factor out common code initializing events

Factor out common code from timeout T1 handling and starting of
the DHCP client.

10 years agolibsystemd-dhcp: Handle T1 Renewing timeout
Patrik Flykt [Fri, 20 Dec 2013 15:16:18 +0000 (17:16 +0200)]
libsystemd-dhcp: Handle T1 Renewing timeout

Expiration of T1 timeout takes the client to the Rebinding state,
where it attempts to renew its lease. Start by opening a DCHP unicast
socket as there now is a proper IP address set.

Compute the resend timer as half of the remaining time down to a
minimum of 60 seconds (RFC2131). Modify DHCP Request sending to send
only UDP DHCP data when unicasting. Also modify DHCP Ack/Nak
receiving such that the client_receive_ack() takes care of using
either the full IP, UDP, DHCP packet or only the DHCP payload
depending whether the client is in Requesting or Renewing state.
Finally always report DHCP_EVENT_IP_ACQUIRE from Requesting state
and only DHCP_EVENT_IP_CHANGE if the IP address was modified when
the lease was renewed.

10 years agolibsystemd-dhcp: Add functions for sending unicast UDP messages
Patrik Flykt [Fri, 20 Dec 2013 15:16:17 +0000 (17:16 +0200)]
libsystemd-dhcp: Add functions for sending unicast UDP messages

Create a helper functions setting up an unicast DHCP UDP socket and
sending data. Add function stubs for the test program.

[tomegun: initialize structs when allocating, and drop unneccesary 'err']

10 years agolibsystemd-dhcp: Check test result without casting value
Patrik Flykt [Fri, 20 Dec 2013 15:16:16 +0000 (17:16 +0200)]
libsystemd-dhcp: Check test result without casting value

10 years agolibsystemd-dhcp: Fix checksum computation for buffer with odd size
Patrik Flykt [Fri, 20 Dec 2013 15:16:15 +0000 (17:16 +0200)]
libsystemd-dhcp: Fix checksum computation for buffer with odd size

Fix off-by-one error and notice that summing may need more than one
round for the result to be in the lower 16 bits.

10 years agolibsystemd-dhcp: Fix receiving of other message when expecting Ack
Patrik Flykt [Fri, 20 Dec 2013 15:16:14 +0000 (17:16 +0200)]
libsystemd-dhcp: Fix receiving of other message when expecting Ack

When a DHCP Nak is received, return a DHCP_EVENT_NO_LEASE event. If
some other DHCP message is received or an error happens when parsing
options, return -ENOMSG in order to ignore the packet. There may be
more than one server serving the same subnet, each server will send
its Offer to the client.

10 years agolibsystemd-dhcp: Unref event source before closing socket
Patrik Flykt [Fri, 20 Dec 2013 15:16:13 +0000 (17:16 +0200)]
libsystemd-dhcp: Unref event source before closing socket

10 years agolibsystemd-dhcp: Return proper error on OOM
Patrik Flykt [Fri, 20 Dec 2013 15:16:12 +0000 (17:16 +0200)]
libsystemd-dhcp: Return proper error on OOM

10 years agolibsystemd-dhcp: Return proper error if bind fails
Patrik Flykt [Fri, 20 Dec 2013 15:16:11 +0000 (17:16 +0200)]
libsystemd-dhcp: Return proper error if bind fails

This also fixes a minor indentation damage.

[tomegun: use close_noint_nofail() instead and drop 'err' variables]

10 years agolibsystemd-dhcp: Use be32_t for IP addresses in network order.
Patrik Flykt [Fri, 20 Dec 2013 15:16:10 +0000 (17:16 +0200)]
libsystemd-dhcp: Use be32_t for IP addresses in network order.

10 years agologind: remove dead variable
Zbigniew Jędrzejewski-Szmek [Thu, 19 Dec 2013 19:16:46 +0000 (14:16 -0500)]
logind: remove dead variable

Noticed-by: Jan Alexander Steffens <jan.steffens@gmail.com>
10 years agofstab-generator: Do not try to fsck non-devices
Thomas Bächler [Sat, 21 Dec 2013 10:22:37 +0000 (11:22 +0100)]
fstab-generator: Do not try to fsck non-devices

This fixes a regression introduced in 64e70e4 where the mount fails
when fstab is misconfigured with fs_passno > 0 on a virtual file
system like nfs, and the type is specified as "auto".

10 years agolibsystemd-login: add sd_session_get_remote_{host, user}
Mantas Mikulėnas [Sun, 22 Dec 2013 00:48:46 +0000 (02:48 +0200)]
libsystemd-login: add sd_session_get_remote_{host, user}

10 years agoupdate TODO
Lennart Poettering [Sun, 22 Dec 2013 02:50:30 +0000 (03:50 +0100)]
update TODO

10 years agocore: no need to list properties for PropertiesChanged messages anymore
Lennart Poettering [Sun, 22 Dec 2013 02:43:03 +0000 (03:43 +0100)]
core: no need to list properties for PropertiesChanged messages anymore

Since the vtable includes this information anyway, let's just use that

10 years agobus: allow invocation of sd_bus_emit_properties_changed_strv() with NULL list
Lennart Poettering [Sun, 22 Dec 2013 02:22:34 +0000 (03:22 +0100)]
bus: allow invocation of sd_bus_emit_properties_changed_strv() with NULL list

When NULL is passed this shall indicate that a PropertiesChanged message
for all properties marked as EMITS_CHANGE or EMITS_INVALIDATION should
be generated.

10 years agobus: decorate the various object vtables with SD_BUS_VTABLE_PROPERTY_CONST where...
Lennart Poettering [Sun, 22 Dec 2013 01:24:05 +0000 (02:24 +0100)]
bus: decorate the various object vtables with SD_BUS_VTABLE_PROPERTY_CONST where appropriate

10 years agobus: introduce concept of "const" properties
Lennart Poettering [Sat, 21 Dec 2013 23:12:54 +0000 (00:12 +0100)]
bus: introduce concept of "const" properties

This way we have four kinds of properties:

a) those which are constant as long as an object exists
b) those which can change and PropertiesChange messages with contents are generated
c) those which can change and where the PropertesChange merely includes invalidation
d) those which can change but for which no events are generated

Clients (through code generators run on the introspection XML) can thus
aggressively cache a, b, c, with only d excluded.

10 years agoman: update the list of commands influenced by --full
Zbigniew Jędrzejewski-Szmek [Sun, 22 Dec 2013 00:07:49 +0000 (19:07 -0500)]
man: update the list of commands influenced by --full

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=732798

10 years agoman: mention --full and --lines in systemctl status
Zbigniew Jędrzejewski-Szmek [Sun, 22 Dec 2013 00:00:08 +0000 (19:00 -0500)]
man: mention --full and --lines in systemctl status

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=732798

10 years agoutil: remove union dirent_storage
Florian Weimer [Thu, 19 Dec 2013 11:44:10 +0000 (12:44 +0100)]
util: remove union dirent_storage

10 years agojournal: replace readdir_r with readdir
Florian Weimer [Thu, 19 Dec 2013 11:42:32 +0000 (12:42 +0100)]
journal: replace readdir_r with readdir

This commit also adds error handling for failures during
directory reading.

10 years agoconf-files: replace readdir_r with readdir
Florian Weimer [Thu, 19 Dec 2013 10:33:09 +0000 (11:33 +0100)]
conf-files: replace readdir_r with readdir

10 years agojournald/server: replace readdir_r with readdir
Florian Weimer [Thu, 19 Dec 2013 11:23:12 +0000 (12:23 +0100)]
journald/server: replace readdir_r with readdir

The available_space function now returns 0 if reading the directory
fails.  Previously, such errors were silently ignored.

10 years agojournal/vacuum: replace readdir_r with readdir
Florian Weimer [Thu, 19 Dec 2013 11:15:58 +0000 (12:15 +0100)]
journal/vacuum: replace readdir_r with readdir

10 years agoutil: replace readdir_r with readdir
Florian Weimer [Thu, 19 Dec 2013 11:05:41 +0000 (12:05 +0100)]
util: replace readdir_r with readdir

This fixes rm_rf_children_dangerous to detect errors during directory
reading.  Previously, it could dereference an uninitialized pointer.

10 years agoinstall: replace readdir_r with readdir
Florian Weimer [Thu, 19 Dec 2013 10:59:19 +0000 (11:59 +0100)]
install: replace readdir_r with readdir

The old code incorrectly assumed that readdir_r updates errno.

10 years agocore: replace readdir_r with readdir
Florian Weimer [Thu, 19 Dec 2013 10:25:08 +0000 (11:25 +0100)]
core: replace readdir_r with readdir

10 years agologin: replace readdir_r with readdir
Florian Weimer [Thu, 19 Dec 2013 10:14:09 +0000 (11:14 +0100)]
login: replace readdir_r with readdir

10 years agodelta: replace readdir_r with readdir
Florian Weimer [Thu, 19 Dec 2013 10:16:12 +0000 (11:16 +0100)]
delta: replace readdir_r with readdir

10 years agotmpfiles: replace readdir_r with readdir
Florian Weimer [Thu, 19 Dec 2013 11:26:07 +0000 (12:26 +0100)]
tmpfiles: replace readdir_r with readdir

10 years agologinctl: correctly show session IDs on session-status
Djalal Harouni [Sat, 21 Dec 2013 14:49:46 +0000 (15:49 +0100)]
loginctl: correctly show session IDs on session-status

Commit f8f14b3654bcd introduced a regression that makes
loginctl session-status to not show the correct session ID(s)

In print_session_status_info() the map[] array, element "Seat" receives
the offset of the "id" in "SessionStatusInfo" struct instead of the
offset of the "seat" member.

This will cause prop_map_first_of_struct() function to overwrite the
SessionStatusInfo.id memory with seats if there are any.

Fix this typo by using the "seat" member.

Before:
 - tixxdz (1000)
          Since: Sat 2013-12-21 10:07:23 CET; 5h 26min ago
         Leader: 1265 (sshd)

After:
1 - tixxdz (1000)
           Since: Sat 2013-12-21 10:07:23 CET; 5h 26min ago
          Leader: 1265 (sshd)

10 years agologinctl,shell-completions: fix listing of sessions/users/seats
Zbigniew Jędrzejewski-Szmek [Sat, 21 Dec 2013 19:20:29 +0000 (14:20 -0500)]
loginctl,shell-completions: fix listing of sessions/users/seats

10 years agobuild-sys: add xml sources to EXTRA_DIST
Zbigniew Jędrzejewski-Szmek [Sat, 21 Dec 2013 23:11:35 +0000 (18:11 -0500)]
build-sys: add xml sources to EXTRA_DIST

Apparently automake does not include the sources if they are under
a conditional that is disabled when making dist. This means that
everything would have to be enabled to make distcheck work.

10 years agoman: add systemd-dbus-proxy@.service(8) and systemd-dbus.proxy(8)
Zbigniew Jędrzejewski-Szmek [Sat, 21 Dec 2013 18:58:14 +0000 (13:58 -0500)]
man: add systemd-dbus-proxy@.service(8) and systemd-dbus.proxy(8)

10 years agobus-proxyd: use a loop instead of c&p
Zbigniew Jędrzejewski-Szmek [Sat, 21 Dec 2013 16:23:08 +0000 (11:23 -0500)]
bus-proxyd: use a loop instead of c&p

10 years agobus-proxyd: show address nicely in --help
Zbigniew Jędrzejewski-Szmek [Sat, 21 Dec 2013 15:26:55 +0000 (10:26 -0500)]
bus-proxyd: show address nicely in --help

10 years agoupdate TODO
Lennart Poettering [Sat, 21 Dec 2013 22:32:45 +0000 (23:32 +0100)]
update TODO

10 years agobus: fix bad memory access in driverd when we get an empty triggers list
Lennart Poettering [Sat, 21 Dec 2013 22:26:51 +0000 (23:26 +0100)]
bus: fix bad memory access in driverd when we get an empty triggers list

10 years agobus: when getting credentials of a bus name that is activatable but not activated...
Lennart Poettering [Sat, 21 Dec 2013 17:47:33 +0000 (18:47 +0100)]
bus: when getting credentials of a bus name that is activatable but not activated, say we don't have anything.

10 years agodriverd: properly handle NameHasOwner() for unique names
Lennart Poettering [Sat, 21 Dec 2013 17:35:27 +0000 (18:35 +0100)]
driverd: properly handle NameHasOwner() for unique names

10 years agobus: unify credential query code in driverd
Lennart Poettering [Sat, 21 Dec 2013 17:31:00 +0000 (18:31 +0100)]
bus: unify credential query code in driverd

10 years agobus: when client asks driverd for credentials of a name, return a useful error if...
Lennart Poettering [Sat, 21 Dec 2013 17:21:49 +0000 (18:21 +0100)]
bus: when client asks driverd for credentials of a name, return a useful error if that name doesn't exist on the bus

10 years agodriverd: make sure AddMatch is accessible without privileges
Lennart Poettering [Sat, 21 Dec 2013 17:13:05 +0000 (18:13 +0100)]
driverd: make sure AddMatch is accessible without privileges

10 years agoupdate TODO
Lennart Poettering [Sat, 21 Dec 2013 17:13:01 +0000 (18:13 +0100)]
update TODO

10 years agobus: when introspecting, turn unprivileged flag into inverse annoation of "privileged"
Lennart Poettering [Sat, 21 Dec 2013 17:08:39 +0000 (18:08 +0100)]
bus: when introspecting, turn unprivileged flag into inverse annoation of "privileged"

Internally, it makes sense to have a default of "privileged" for
methods, and a flag to open it up. However, externally in the bus
introspection turn this around since negative options actually suck.

10 years agobus: poll() on the right fds in proxyd
Lennart Poettering [Sat, 21 Dec 2013 16:46:35 +0000 (17:46 +0100)]
bus: poll() on the right fds in proxyd

10 years agobus: send status message from proxyd to systemd about client we are working for
Lennart Poettering [Sat, 21 Dec 2013 03:19:51 +0000 (04:19 +0100)]
bus: send status message from proxyd to systemd about client we are working for

10 years agosystemctl: fix bad memory access when processing PIDs on the "systemctl status" comma...
Lennart Poettering [Sat, 21 Dec 2013 04:07:44 +0000 (05:07 +0100)]
systemctl: fix bad memory access when processing PIDs on the "systemctl status" command line

10 years agoDEFAULT_PATH_SPLIT_USR macro
Shawn Landden [Fri, 20 Dec 2013 23:35:38 +0000 (15:35 -0800)]
DEFAULT_PATH_SPLIT_USR macro

10 years agologging: reduce send timeout to something more sensible
Zbigniew Jędrzejewski-Szmek [Sat, 14 Dec 2013 16:54:26 +0000 (11:54 -0500)]
logging: reduce send timeout to something more sensible

For a user, the timeout of 1 min per message seems equivalent to a hang.
If journald cannot process a message from PID1 for 10 ms then something
is significantly wrong. It's better to lose the message and continue.

10 years agobuild-sys: add sd_j_open_container manpage alias
Zbigniew Jędrzejewski-Szmek [Sat, 21 Dec 2013 01:26:08 +0000 (20:26 -0500)]
build-sys: add sd_j_open_container manpage alias

10 years agodriverd: sort list of names returned by ListNames
Lennart Poettering [Sat, 21 Dec 2013 03:06:11 +0000 (04:06 +0100)]
driverd: sort list of names returned by ListNames

10 years agobus: properly react to Disconnected messages in bus-proxyd
Lennart Poettering [Sat, 21 Dec 2013 03:03:12 +0000 (04:03 +0100)]
bus: properly react to Disconnected messages in bus-proxyd

10 years agobus: change bus-proxyd command line parsing to be more similar to other tools
Lennart Poettering [Sat, 21 Dec 2013 02:59:07 +0000 (03:59 +0100)]
bus: change bus-proxyd command line parsing to be more similar to other tools

10 years agobus: refuse messages pretending to originate from local interface
Lennart Poettering [Sat, 21 Dec 2013 02:52:39 +0000 (03:52 +0100)]
bus: refuse messages pretending to originate from local interface

10 years agobus: in sd_bus_try_close() consider local read queue too
Lennart Poettering [Sat, 21 Dec 2013 02:46:26 +0000 (03:46 +0100)]
bus: in sd_bus_try_close() consider local read queue too

10 years agobus: always override message destination field with data from kdbus
Lennart Poettering [Sat, 21 Dec 2013 02:17:29 +0000 (03:17 +0100)]
bus: always override message destination field with data from kdbus

10 years agobus: always consider well-known names sender credentials as attached to messages
Lennart Poettering [Sat, 21 Dec 2013 02:16:39 +0000 (03:16 +0100)]
bus: always consider well-known names sender credentials as attached to messages

10 years agobus: when filtering by sender take well known names lest from attached creds into...
Lennart Poettering [Sat, 21 Dec 2013 01:56:34 +0000 (02:56 +0100)]
bus: when filtering by sender take well known names lest from attached creds into account

10 years agocore: make check for Disconnected message more precise
Lennart Poettering [Sat, 21 Dec 2013 01:40:40 +0000 (02:40 +0100)]
core: make check for Disconnected message more precise

10 years agobus: when watching bus names, we always need to add a change match
Lennart Poettering [Sat, 21 Dec 2013 00:02:23 +0000 (01:02 +0100)]
bus: when watching bus names, we always need to add a change match

Since for the kernel change of ownership of a name between starter and
real client is a change and for userspace thats addition/removal, we
need to unconditionally subscribe to these change events.

10 years agocore: pass notify fd across reexecs
Lennart Poettering [Fri, 20 Dec 2013 23:19:37 +0000 (00:19 +0100)]
core: pass notify fd across reexecs

That way we the random socket name stays stable across reexec and we
won't lose client messages.

10 years agoupdate TODO
Lennart Poettering [Fri, 20 Dec 2013 23:19:30 +0000 (00:19 +0100)]
update TODO

10 years agobus: wrap KDBUS_CMD_BYEBYE with a high-level call sd_bus_try_close()
Lennart Poettering [Fri, 20 Dec 2013 22:25:43 +0000 (23:25 +0100)]
bus: wrap KDBUS_CMD_BYEBYE with a high-level call sd_bus_try_close()

10 years agolibsystemd-bus: match on any connection ID unless specified
Daniel Mack [Fri, 20 Dec 2013 22:12:42 +0000 (23:12 +0100)]
libsystemd-bus: match on any connection ID unless specified

10 years agolibsystemd-bus: follow changes in kdbus
Daniel Mack [Fri, 20 Dec 2013 19:57:20 +0000 (20:57 +0100)]
libsystemd-bus: follow changes in kdbus

In particular, the match interface has seen a major overhaul.

10 years agodef: lower exit-on-idle time
Lennart Poettering [Thu, 19 Dec 2013 21:12:53 +0000 (22:12 +0100)]
def: lower exit-on-idle time

10 years agosd-event: return 1 in sd_event_run() when we hit EINTR
Lennart Poettering [Thu, 19 Dec 2013 20:38:52 +0000 (21:38 +0100)]
sd-event: return 1 in sd_event_run() when we hit EINTR

That way we can distuingish timeouts from EINTR

10 years agoservice: don't send out PropertiesChanged message for each watchdog notification
Lennart Poettering [Thu, 19 Dec 2013 20:34:09 +0000 (21:34 +0100)]
service: don't send out PropertiesChanged message for each watchdog notification

10 years agomachined: implement exit-on-idle
Lennart Poettering [Thu, 19 Dec 2013 20:15:08 +0000 (21:15 +0100)]
machined: implement exit-on-idle