1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-26 03:22:00 +03:00

rename ALARM_TIMEOUT to UDEV_ALARM_TIMEOUT

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
This commit is contained in:
Kay Sievers 2005-07-06 14:42:26 +02:00
parent ebfc1acd48
commit 8815afa1df
3 changed files with 3 additions and 4 deletions

2
udev.c
View File

@ -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");

3
udev.h
View File

@ -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,

View File

@ -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);