From patchwork Wed Apr 8 13:41:58 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerald Dachs X-Patchwork-Id: 12713 Received: from dd1030.kasserver.com ([85.13.128.18]) by mail.linuxtv.org with esmtp (Exim 4.63) (envelope-from ) id 1LrY30-0004sD-QP for vdr@linuxtv.org; Wed, 08 Apr 2009 15:42:35 +0200 Received: from e-pc.dachsweb.home (e177201119.adsl.alicedsl.de [85.177.201.119]) by dd1030.kasserver.com (Postfix) with ESMTP id 23381D6DDF82 for ; Wed, 8 Apr 2009 15:42:32 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by e-pc.dachsweb.home (Postfix) with ESMTP id 4B6811AE509 for ; Wed, 8 Apr 2009 15:42:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at dachsweb.home Received: from e-pc.dachsweb.home ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4kfpn-eAgk6e for ; Wed, 8 Apr 2009 15:41:59 +0200 (CEST) Received: by e-pc.dachsweb.home (Postfix, from userid 33) id 05F071AE507; Wed, 8 Apr 2009 15:41:58 +0200 (CEST) Received: from 217.5.231.249 ([217.5.231.249]) by sohoserver.homelinux.net (Horde MIME library) with HTTP; Wed, 08 Apr 2009 15:41:58 +0200 Message-ID: <20090408154158.mbv7qx7cmcs8wg8w@sohoserver.homelinux.net> Date: Wed, 08 Apr 2009 15:41:58 +0200 From: Gerald Dachs To: vdr@linuxtv.org MIME-Version: 1.0 Content-Disposition: inline User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) X-LSpam-Score: -2.3 (--) X-LSpam-Report: No, score=-2.3 required=5.0 tests=AWL=0.298, BAYES_00=-2.599 autolearn=ham Subject: [vdr] ERROR (thread.c,225): Keine Berechtigung X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Apr 2009 13:42:35 -0000 Status: O X-Status: X-Keywords: X-UID: 19995 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 ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. --- 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; }