chiark / gitweb /
logind: Do not fail display count if a device has no parent
authorMantas Mikulėnas <grawity@gmail.com>
Tue, 11 Mar 2014 15:49:00 +0000 (17:49 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 11 Mar 2014 16:45:24 +0000 (17:45 +0100)
commit94036de887ad5b0dc805abe38b5c1c58b57d9465
tree47ecc04e64f5a59f8bb17ef4a4a9fcafa1e5b5f8
parent4de82926892eb1636d0a25cf1e4ab15cab6a6099
logind: Do not fail display count if a device has no parent

udev_device_get_parent() may return NULL when the device doesn't have a
parent, as is the case with (for example) /sys/devices/virtual/drm/ttm.

Also, log an actual error message instead of "-12 displays connected".
src/login/logind-action.c
src/login/logind-core.c