summaryrefslogtreecommitdiff
path: root/udev
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-04-14 12:25:19 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-04-14 12:25:19 +0200
commit02bf3e13e00157c23f77a89a35cb3e51543d336e (patch)
tree8787b12807fe59fbab39bc19fb15f0f1839eef88 /udev
parent9ead662791b5e59a95b6c5a9351d661cb61d76bb (diff)
udevd: do not nice processes
Diffstat (limited to 'udev')
-rw-r--r--udev/udev-event.c2
-rw-r--r--udev/udev-rules.c4
-rw-r--r--udev/udevd.c7
3 files changed, 3 insertions, 10 deletions
diff --git a/udev/udev-event.c b/udev/udev-event.c
index 63a8b3aa83..60d06aa084 100644
--- a/udev/udev-event.c
+++ b/udev/udev-event.c
@@ -688,7 +688,7 @@ int udev_event_execute_run(struct udev_event *event, const sigset_t *sigmask)
info(event->udev, "delay execution of '%s'\n", program);
sleep(event->exec_delay);
}
- if (util_run_program(event->udev, program, envp, NULL, 0, NULL, sigmask, true) != 0) {
+ if (util_run_program(event->udev, program, envp, NULL, 0, NULL, sigmask) != 0) {
if (udev_list_entry_get_flags(list_entry))
err = -1;
}
diff --git a/udev/udev-rules.c b/udev/udev-rules.c
index 805f449f22..bef5abab5e 100644
--- a/udev/udev-rules.c
+++ b/udev/udev-rules.c
@@ -759,7 +759,7 @@ static int import_program_into_properties(struct udev_device *dev, const char *p
char *line;
envp = udev_device_get_properties_envp(dev);
- if (util_run_program(udev, program, envp, result, sizeof(result), &reslen, NULL, false) != 0)
+ if (util_run_program(udev, program, envp, result, sizeof(result), &reslen, NULL) != 0)
return -1;
line = result;
@@ -2297,7 +2297,7 @@ int udev_rules_apply_to_event(struct udev_rules *rules, struct udev_event *event
program,
&rules->buf[rule->rule.filename_off],
rule->rule.filename_line);
- if (util_run_program(event->udev, program, envp, result, sizeof(result), NULL, NULL, false) != 0) {
+ if (util_run_program(event->udev, program, envp, result, sizeof(result), NULL, NULL) != 0) {
if (cur->key.op != OP_NOMATCH)
goto nomatch;
} else {
diff --git a/udev/udevd.c b/udev/udevd.c
index 051e8fe527..244780ab57 100644
--- a/udev/udevd.c
+++ b/udev/udevd.c
@@ -47,9 +47,6 @@
#include "udev.h"
#include "sd-daemon.h"
-#define UDEVD_PRIORITY -4
-#define UDEV_PRIORITY -2
-
static bool debug;
static void log_fn(struct udev *udev, int priority,
@@ -267,7 +264,6 @@ static void worker_new(struct event *event)
close(worker_watch[READ_END]);
udev_log_close();
udev_log_init("udevd-work");
- setpriority(PRIO_PROCESS, 0, UDEV_PRIORITY);
/* set signal handlers */
memset(&act, 0x00, sizeof(act));
@@ -1426,9 +1422,6 @@ int main(int argc, char *argv[])
if (fd > STDERR_FILENO)
close(fd);
- /* set scheduling priority for the main daemon process */
- setpriority(PRIO_PROCESS, 0, UDEVD_PRIORITY);
-
setsid();
f = fopen("/dev/kmsg", "w");