Signed-off-by: Kay Sievers <kay.sievers@suse.de>
sigaction(SIGTERM, &act, NULL);
/* trigger timeout to prevent hanging processes */
- alarm(ALARM_TIMEOUT);
+ alarm(UDEV_ALARM_TIMEOUT);
action = getenv("ACTION");
devpath = getenv("DEVPATH");
#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
#define VALUE_SIZE 128
#define DEFAULT_PARTITIONS_COUNT 15
+#define UDEV_ALARM_TIMEOUT 120
enum device_type {
DEV_UNKNOWN,
sigaction(SIGTERM, &act, NULL);
/* trigger timeout to prevent hanging processes */
- alarm(ALARM_TIMEOUT);
+ alarm(UDEV_ALARM_TIMEOUT);
udev_rules_init(&rules, 1);