summaryrefslogtreecommitdiff
path: root/libudev
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 /libudev
parent9ead662791b5e59a95b6c5a9351d661cb61d76bb (diff)
udevd: do not nice processes
Diffstat (limited to 'libudev')
-rw-r--r--libudev/libudev-private.h2
-rw-r--r--libudev/libudev-util-private.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/libudev/libudev-private.h b/libudev/libudev-private.h
index c57a89873c..e82ca1d753 100644
--- a/libudev/libudev-private.h
+++ b/libudev/libudev-private.h
@@ -235,7 +235,7 @@ uid_t util_lookup_user(struct udev *udev, const char *user);
gid_t util_lookup_group(struct udev *udev, const char *group);
int util_run_program(struct udev *udev, const char *command, char **envp,
char *result, size_t ressize, size_t *reslen,
- const sigset_t *sigmask, bool reset_prio);
+ const sigset_t *sigmask);
int util_resolve_subsys_kernel(struct udev *udev, const char *string,
char *result, size_t maxsize, int read_value);
unsigned long long usec_monotonic(void);
diff --git a/libudev/libudev-util-private.c b/libudev/libudev-util-private.c
index 073f7e2df8..c7ad20eb74 100644
--- a/libudev/libudev-util-private.c
+++ b/libudev/libudev-util-private.c
@@ -261,7 +261,7 @@ int util_resolve_subsys_kernel(struct udev *udev, const char *string,
int util_run_program(struct udev *udev, const char *command, char **envp,
char *result, size_t ressize, size_t *reslen,
- const sigset_t *sigmask, bool reset_prio)
+ const sigset_t *sigmask)
{
int status;
int outpipe[2] = {-1, -1};
@@ -356,8 +356,6 @@ int util_run_program(struct udev *udev, const char *command, char **envp,
if (sigmask)
sigprocmask(SIG_SETMASK, sigmask, NULL);
- if (reset_prio)
- setpriority(PRIO_PROCESS, 0, 0);
execve(argv[0], argv, envp);
if (errno == ENOENT || errno == ENOTDIR) {