1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-08 20:58:20 +03:00

sd-device-monitor: fix inversed condition

Fixes an issue introduced by b3d06b9226db96fddb6bb45a4708e2e8d413d91d.

(cherry picked from commit 133d78966fe8b1469e593bd467d9055f7afa5858)
This commit is contained in:
Yu Watanabe 2022-08-12 04:16:56 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent 1760559918
commit 81339c45e8

View File

@ -446,7 +446,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;
}