aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/ethumb_client
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/ethumb_client')
-rw-r--r--src/bin/ethumb_client/ethumbd.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/bin/ethumb_client/ethumbd.c b/src/bin/ethumb_client/ethumbd.c
index d8140aa925..a57ee3dabf 100644
--- a/src/bin/ethumb_client/ethumbd.c
+++ b/src/bin/ethumb_client/ethumbd.c
@@ -30,6 +30,12 @@
#include <unistd.h>
#include <errno.h>
+#include <stdlib.h>
+#ifdef HAVE_SYS_RESOURCE_H
+#include <sys/time.h>
+#include <sys/resource.h>
+#endif
+
#include <Eina.h>
#include <Ecore_Getopt.h>
#include <Ecore.h>
@@ -1705,6 +1711,12 @@ main(int argc, char *argv[])
int child;
double timeout = 30.0;
+#ifdef HAVE_SYS_RESOURCE_H
+ setpriority(PRIO_PROCESS, 0, 19);
+#elif _WIN32
+ SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS);
+#endif
+
memset(&ed, 0, sizeof(ed));
ecore_init();
eina_init();