add warning if u dont have process priority swizzling.
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 18 Jul 2012 11:54:32 +0000 (11:54 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 18 Jul 2012 11:54:32 +0000 (11:54 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@74060 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore/ecore_exe.c

index 55462a8..7cc4b0f 100644 (file)
@@ -487,8 +487,14 @@ ecore_exe_pipe_run(const char     *exe_cmd,
       {
          if (run_pri != ECORE_EXE_PRIORITY_INHERIT)
          {
+#ifdef PRIO_PROCESS            
             if ((run_pri >= -20) && (run_pri <= 19))
               setpriority(PRIO_PROCESS, 0, run_pri);
+#else
+#warning "Your OS/libc does not provide PRIO_PROCESS (and possibly setpriority())"
+#warning "This is a POSIX-1.2001 standard and it is highly encouraged that you"
+#warning "Have support for this"
+#endif
          }
          /* dup2 STDERR, STDIN, and STDOUT.  dup2() allegedly closes the
           * second pipe if it's open. On the other hand, there was the