From 677080ab4ebab1b03ab8032a9fbf19b4541bb31e Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Wed, 18 Jul 2012 11:54:32 +0000 Subject: [PATCH] add warning if u dont have process priority swizzling. SVN revision: 74060 --- legacy/ecore/src/lib/ecore/ecore_exe.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/legacy/ecore/src/lib/ecore/ecore_exe.c b/legacy/ecore/src/lib/ecore/ecore_exe.c index 55462a8446..7cc4b0f3bb 100644 --- a/legacy/ecore/src/lib/ecore/ecore_exe.c +++ b/legacy/ecore/src/lib/ecore/ecore_exe.c @@ -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