summaryrefslogtreecommitdiff
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 @@
30#include <unistd.h> 30#include <unistd.h>
31#include <errno.h> 31#include <errno.h>
32 32
33#include <stdlib.h>
34#ifdef HAVE_SYS_RESOURCE_H
35#include <sys/time.h>
36#include <sys/resource.h>
37#endif
38
33#include <Eina.h> 39#include <Eina.h>
34#include <Ecore_Getopt.h> 40#include <Ecore_Getopt.h>
35#include <Ecore.h> 41#include <Ecore.h>
@@ -1705,6 +1711,12 @@ main(int argc, char *argv[])
1705 int child; 1711 int child;
1706 double timeout = 30.0; 1712 double timeout = 30.0;
1707 1713
1714#ifdef HAVE_SYS_RESOURCE_H
1715 setpriority(PRIO_PROCESS, 0, 19);
1716#elif _WIN32
1717 SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS);
1718#endif
1719
1708 memset(&ed, 0, sizeof(ed)); 1720 memset(&ed, 0, sizeof(ed));
1709 ecore_init(); 1721 ecore_init();
1710 eina_init(); 1722 eina_init();