diff options
author | Kay Sievers <kay.sievers@suse.de> | 2005-07-06 14:42:26 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2005-07-06 14:42:26 +0200 |
commit | 8815afa1df0dbb0b366156d4cebc56468906118c (patch) | |
tree | fa6f012cc6abf6f4013687b5db42b950d3e0b657 | |
parent | ebfc1acd48606d9f2967d92f265010edf010634b (diff) |
rename ALARM_TIMEOUT to UDEV_ALARM_TIMEOUT
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
-rw-r--r-- | udev.c | 2 | ||||
-rw-r--r-- | udev.h | 3 | ||||
-rw-r--r-- | udevstart.c | 2 |
3 files changed, 3 insertions, 4 deletions
@@ -96,7 +96,7 @@ int main(int argc, char *argv[], char *envp[]) sigaction(SIGTERM, &act, NULL); /* trigger timeout to prevent hanging processes */ - alarm(ALARM_TIMEOUT); + alarm(UDEV_ALARM_TIMEOUT); action = getenv("ACTION"); devpath = getenv("DEVPATH"); @@ -29,9 +29,7 @@ #include "libsysfs/sysfs/libsysfs.h" #include "list.h" -#define ALARM_TIMEOUT 120 #define COMMENT_CHARACTER '#' - #define LINE_SIZE 512 #define NAME_SIZE 128 #define PATH_SIZE 256 @@ -40,6 +38,7 @@ #define VALUE_SIZE 128 #define DEFAULT_PARTITIONS_COUNT 15 +#define UDEV_ALARM_TIMEOUT 120 enum device_type { DEV_UNKNOWN, diff --git a/udevstart.c b/udevstart.c index 4ef92fd537..d9912466ca 100644 --- a/udevstart.c +++ b/udevstart.c @@ -359,7 +359,7 @@ int main(int argc, char *argv[], char *envp[]) sigaction(SIGTERM, &act, NULL); /* trigger timeout to prevent hanging processes */ - alarm(ALARM_TIMEOUT); + alarm(UDEV_ALARM_TIMEOUT); udev_rules_init(&rules, 1); |