From f58a9099bb2b18f3f683615324a4382b95446305 Mon Sep 17 00:00:00 2001 From: Alan Jenkins Date: Wed, 20 May 2009 16:12:22 +0200 Subject: [PATCH] udevadm: settle - fix timeout The timeout wasn't working when settle was run as root: # udevadm control --stop-exec-queue # udevadm trigger # udevadm settle --timeout=1 ... (hangs) Signed-off-by: Alan Jenkins --- udev/udevadm-settle.c | 1 + 1 file changed, 1 insertion(+) diff --git a/udev/udevadm-settle.c b/udev/udevadm-settle.c index 3b26f10d..52d9c0b2 100644 --- a/udev/udevadm-settle.c +++ b/udev/udevadm-settle.c @@ -167,6 +167,7 @@ int udevadm_settle(struct udev *udev, int argc, char *argv[]) sigprocmask(SIG_BLOCK, &mask, &oldmask); if (udev_ctrl_send_settle(uctrl) > 0) sigsuspend(&oldmask); + sigprocmask(SIG_SETMASK, &oldmask, NULL); udev_ctrl_unref(uctrl); } } -- 2.39.5