summaryrefslogtreecommitdiff
path: root/udev/udevd.c
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/udevd.c
parent9ead662791b5e59a95b6c5a9351d661cb61d76bb (diff)
udevd: do not nice processes
Diffstat (limited to 'udev/udevd.c')
-rw-r--r--udev/udevd.c7
1 files changed, 0 insertions, 7 deletions
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");