Date: Fri, 19 Jan 2001 17:14:18 +0300 (MSK) From: isupov@moonhe.jinr.ru To: FreeBSD-gnats-submit@freebsd.org Subject: bin/24458: named-xfer executed at 20 priority level instead of wanted 0 level Message-ID: <200101191414.f0JEEI389616@moonhe.jinr.ru>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101191414.f0JEEI389616>