Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Feb 2001 16:40:00 -0500 (EST)
From:      rwatson@freebsd.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/25436: csh "nice" command does not behave in sync with usr.bin/nice
Message-ID:  <200102272140.f1RLe0401051@sproing.gw.tislabs.com>

next in thread | raw e-mail | index | archive | help

>Number:         25436
>Category:       bin
>Synopsis:       csh builtin nice behaves improperly
>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:   Tue Feb 27 14:40:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
NAI Labs
>Environment:
System: FreeBSD sproing.gw.tislabs.com 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Tue Feb 27 15:45:03 EST 2001 rwatson@sproing.gw.tislabs.com:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:

First off, the csh "nice" command has a different syntax than nice(1),
as it uses a "+prio" instead of "prio" interface.  This is probably
acceptable as it is documented that way in the csh man page, as confusing
as users may find that.

However, what does worry me is that the csh nice command doesn't appear to
work properly, and report errors correctly.

>How-To-Repeat:

(using tcsh as shell)
sproing:~> nice -10 cat /dev/sndstat
FreeBSD Audio Driver (newpcm) Feb 27 2001 15:39:57
Installed devices:
pcm1: <CS423x> at io 0x534 irq 5 drq 1:0 (1p/1r channels duplex)
sproing:~> nice +10 cat /dev/sndstat
FreeBSD Audio Driver (newpcm) Feb 27 2001 15:39:57
Installed devices:
pcm1: <CS423x> at io 0x534 irq 5 drq 1:0 (1p/1r channels duplex)
sproing:~> /usr/bin/nice -10 cat /dev/sndstat
FreeBSD Audio Driver (newpcm) Feb 27 2001 15:39:57
Installed devices:
pcm1: <CS423x> at io 0x534 irq 5 drq 1:0 (1p/1r channels duplex)
sproing:~> /usr/bin/nice --10 cat /dev/sndstat
nice: setpriority: Permission denied

I.e., the csh built-in nice failed to report the failure of the "nice -10"
to set a low nice level.  Maybe this is a feature...?

>Fix:

>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?200102272140.f1RLe0401051>