teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame 0214-udev-timeout-increase-timeout.patch

Zbigniew Jędrzejewski-Szmek 62fe94
From b5338a19864ac3f5632aee48069a669479621dca Mon Sep 17 00:00:00 2001
Zbigniew Jędrzejewski-Szmek 62fe94
From: Tom Gundersen <teg@jklm.no>
Zbigniew Jędrzejewski-Szmek 62fe94
Date: Wed, 10 Sep 2014 10:56:26 +0200
Zbigniew Jędrzejewski-Szmek 62fe94
Subject: [PATCH] udev: timeout - increase timeout
Zbigniew Jędrzejewski-Szmek 62fe94
Zbigniew Jędrzejewski-Szmek 62fe94
Some kernel modules still take more than one minute to insmod, we no longer rely on the timeout
Zbigniew Jędrzejewski-Szmek 62fe94
killing insmod within a given period of time, so just bump this to a much higher value. Its only
Zbigniew Jędrzejewski-Szmek 62fe94
purpose is to make sure that nothing stays aronud forever.
Zbigniew Jędrzejewski-Szmek 62fe94
---
Zbigniew Jędrzejewski-Szmek 62fe94
 src/udev/udevd.c | 2 +-
Zbigniew Jędrzejewski-Szmek 62fe94
 1 file changed, 1 insertion(+), 1 deletion(-)
Zbigniew Jędrzejewski-Szmek 62fe94
Zbigniew Jędrzejewski-Szmek 62fe94
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
Zbigniew Jędrzejewski-Szmek 62fe94
index b023b6ee4c..a7f8cbdf5b 100644
Zbigniew Jędrzejewski-Szmek 62fe94
--- a/src/udev/udevd.c
Zbigniew Jędrzejewski-Szmek 62fe94
+++ b/src/udev/udevd.c
Zbigniew Jędrzejewski-Szmek 62fe94
@@ -74,7 +74,7 @@ static bool reload;
Zbigniew Jędrzejewski-Szmek 62fe94
 static int children;
Zbigniew Jędrzejewski-Szmek 62fe94
 static int children_max;
Zbigniew Jędrzejewski-Szmek 62fe94
 static int exec_delay;
Zbigniew Jędrzejewski-Szmek 62fe94
-static usec_t event_timeout_usec = 60 * USEC_PER_SEC;
Zbigniew Jędrzejewski-Szmek 62fe94
+static usec_t event_timeout_usec = 180 * USEC_PER_SEC;
Zbigniew Jędrzejewski-Szmek 62fe94
 static sigset_t sigmask_orig;
Zbigniew Jędrzejewski-Szmek 62fe94
 static UDEV_LIST(event_list);
Zbigniew Jędrzejewski-Szmek 62fe94
 static UDEV_LIST(worker_list);