summaryrefslogtreecommitdiff
path: root/src/bin/ethumb_client/ethumbd.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-12-28 10:28:57 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-12-28 10:28:57 +0900
commit332a54d1c6fdbf77e56bc45a69ced91c36f6af1a (patch)
tree8bc6dfbf217de782740cd4fe6eac3f09151bc656 /src/bin/ethumb_client/ethumbd.c
parent0aa4de9f1d31452e568f561cd543ad5bc929b24e (diff)
ethumbd - drop priority to 19 like efreetd so it lurks in bg as much as it can
Diffstat (limited to '')
-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();