mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-05 09:17:44 +03:00
sd-device-monitor: fix inversed condition
Fixes an issue introduced byb3d06b9226
. (cherry picked from commit133d78966f
) (cherry picked from commit81339c45e8
)
This commit is contained in:
parent
45e46fb4b2
commit
02a5c22ec1
@ -445,7 +445,7 @@ int device_monitor_receive_device(sd_device_monitor *m, sd_device **ret) {
|
||||
|
||||
buflen = recvmsg(m->sock, &smsg, 0);
|
||||
if (buflen < 0) {
|
||||
if (ERRNO_IS_TRANSIENT(errno))
|
||||
if (!ERRNO_IS_TRANSIENT(errno))
|
||||
log_debug_errno(errno, "sd-device-monitor: Failed to receive message: %m");
|
||||
return -errno;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user