From owner-freebsd-bugs Fri Jan 19 6:10:20 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 27E5B37B402 for ; Fri, 19 Jan 2001 06:10:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0JEA2Y32778; Fri, 19 Jan 2001 06:10:02 -0800 (PST) (envelope-from gnats) Received: from jimex.jinr.ru (jimex.jinr.ru [159.93.17.7]) by hub.freebsd.org (Postfix) with ESMTP id D814137B404 for ; Fri, 19 Jan 2001 06:08:40 -0800 (PST) Received: from moonhe.jinr.ru (root@moonhe.jinr.ru [159.93.18.27]) by jimex.jinr.ru (8.11.1/8.11.1) with ESMTP id f0JE8UI07528 for ; Fri, 19 Jan 2001 17:08:30 +0300 (MSK) Received: (from isupov@localhost) by moonhe.jinr.ru (8.11.0/8.11.0) id f0JEEI389616; Fri, 19 Jan 2001 17:14:18 +0300 (MSK) (envelope-from isupov) Message-Id: <200101191414.f0JEEI389616@moonhe.jinr.ru> Date: Fri, 19 Jan 2001 17:14:18 +0300 (MSK) From: isupov@moonhe.jinr.ru Reply-To: isupov@moonhe.jinr.ru To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/24458: named-xfer executed at 20 priority level instead of wanted 0 level Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 24458 >Category: bin >Synopsis: named-xfer executed at 20 priority level instead of wanted 0 level >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 19 06:10:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Isupov A.Yu. >Release: FreeBSD 4.1.1-RELEASE i386 >Organization: LHE, JINR >Environment: FreeBSD 4.1.1-RELEASE i386 >Description: /usr/libexec/named-xfer, executed by /usr/sbin/named, re'nice(3)'ing itself to 20 priority level instead of wanted 0 (default) level. This occurs because respective (to strange :-) code from /usr/src/contrib/bind/bin/named-xfer/named-xfer.c, lines 351-355 : #ifdef RENICE nice(-40); nice(20); nice(0); #endif works correctly (= sets 0 priority, see comments near) only for process owned by super-user. But named (and named-xfer) now owned by bind:bind >How-To-Repeat: Run code mentioned above not under super-user. >Fix: I think, we need to do nothing with priority in the named-xfer.c and inherit priority level from named process. This behaviour can be achieved by #undef'ing RENICE in the /usr/src/contrib/bind/bin/named/named.h >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message