summaryrefslogtreecommitdiffstats
path: root/contrib/tcsh/sh.time.c
diff options
context:
space:
mode:
authormp <mp@FreeBSD.org>2001-09-05 17:49:32 +0000
committermp <mp@FreeBSD.org>2001-09-05 17:49:32 +0000
commit538cdbc622d96ebd9ba6fae4c5b21f8704e88d90 (patch)
tree836fb15b752f30ac10f0e8bc35125091d7a821a3 /contrib/tcsh/sh.time.c
parent9b07833722e76f7d023c491eaf74bf278221b55d (diff)
downloadFreeBSD-src-538cdbc622d96ebd9ba6fae4c5b21f8704e88d90.zip
FreeBSD-src-538cdbc622d96ebd9ba6fae4c5b21f8704e88d90.tar.gz
Import tcsh-6.11
Diffstat (limited to 'contrib/tcsh/sh.time.c')
-rw-r--r--contrib/tcsh/sh.time.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/tcsh/sh.time.c b/contrib/tcsh/sh.time.c
index 45d0cb8..cb71724 100644
--- a/contrib/tcsh/sh.time.c
+++ b/contrib/tcsh/sh.time.c
@@ -1,4 +1,4 @@
-/* $Header: /src/pub/tcsh/sh.time.c,v 3.22 2000/06/10 21:35:41 kim Exp $ */
+/* $Header: /src/pub/tcsh/sh.time.c,v 3.23 2001/03/18 19:06:31 christos Exp $ */
/*
* sh.time.c: Shell time keeping and printing.
*/
@@ -36,7 +36,7 @@
*/
#include "sh.h"
-RCSID("$Id: sh.time.c,v 3.22 2000/06/10 21:35:41 kim Exp $")
+RCSID("$Id: sh.time.c,v 3.23 2001/03/18 19:06:31 christos Exp $")
#ifdef SUNOS4
# include <machine/param.h>
@@ -177,7 +177,8 @@ donice(v, c)
else if (*v == 0 && any("+-", cp[0]))
nval = getn(cp);
#ifdef BSDNICE
- (void) setpriority(PRIO_PROCESS, 0, nval);
+ if (setpriority(PRIO_PROCESS, 0, nval) == -1 && errno)
+ stderror(ERR_SYSTEM, "setpriority", strerror(errno));
#else /* BSDNICE */
(void) nice(nval);
#endif /* BSDNICE */
OpenPOWER on IntegriCloud