[vdr] ERROR (thread.c,225): Keine Berechtigung

Gerald Dachs vdr at dachsweb.de
Wed Apr 8 15:41:58 CEST 2009


On every start of the vdr I get this error message:
  Apr 2 00:33:36 vdr vdr: [2462] ERROR (thread.c,225): Keine Berechtigung
It comes from cThread::SetPriority and seems to be harmless, but annoying.
Is the attached patch the right cure?

Gerald

--- vdr-1.6.0/thread.c.orig     2009-04-08 15:33:52.000000000 +0200
+++ vdr-1.6.0/thread.c  2009-04-08 15:34:22.000000000 +0200
@@ -220,7 +220,7 @@

  void cThread::SetPriority(int Priority)
  {
-  if (setpriority(PRIO_PROCESS, 0, Priority) < 0)
+  if (setpriority(PRIO_PROCESS, getuid(), Priority) < 0)
       LOG_ERROR;
  }


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the vdr mailing list