diff options
author | Nick Schermer <nick@xfce.org> | 2013-05-05 13:38:16 +0200 |
---|---|---|
committer | Nick Schermer <nick@xfce.org> | 2013-05-05 13:38:16 +0200 |
commit | 8b9fff06a60fc16ad1e55c048e9790932981abfa (patch) | |
tree | 94d0d564a722a9223b016529bc77c5c80212a825 | |
parent | 4f6fcb54fe2d5dd2d8e7287cf3223431c6d98b3f (diff) | |
download | tumbler-8b9fff06a60fc16ad1e55c048e9790932981abfa.tar.gz |
Set nice value of tumblerd to 19 (bug #9627).
-rw-r--r-- | tumblerd/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tumblerd/main.c b/tumblerd/main.c index a0782b1..8249fb2 100644 --- a/tumblerd/main.c +++ b/tumblerd/main.c @@ -28,6 +28,9 @@ #ifdef HAVE_PWD_H #include <pwd.h> #endif +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif #include <stdlib.h> @@ -241,6 +244,11 @@ main (int argc, /* set the program name */ g_set_prgname (G_LOG_DOMAIN); +#ifdef G_OS_UNIX + if (nice (19) != 19) + g_warning (_("Couldn't change nice value of process.")); +#endif + #ifdef DEBUG /* if something doesn't work, fix your code instead! */ g_log_set_always_fatal (G_LOG_LEVEL_CRITICAL); |