bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

nice() doesn't work


From: Robert Millan
Subject: nice() doesn't work
Date: Thu, 24 Apr 2003 17:19:33 +0200
User-agent: Mutt/1.5.4i

Package: libc0.3
Version: latest (not installed)
Severity: normal

nice is unable to set process priority to "-1".

test code follows:

#include <sys/resource.h>
#include <stdio.h>
#include <errno.h>

main ()
{
  int a = -1;

  errno = 0;
  int b = nice (a - nice(0));
  if (errno)
    perror (NULL);

  if (b == a)
    printf ("nice is nice\n");
  else
    printf ("nice is fucked\n");
}


-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux aragorn 2.2.22 #1 dl nov 25 21:59:43 CET 2002 i586
Locale: LANG=ca_ES.ISO-8859-1, LC_CTYPE=ca_ES@euro (ignored: LC_ALL set)


-- 
Robert Millan

make: *** No rule to make target `war'.  Stop.

Another world is possible - Just say no to genocide




reply via email to

[Prev in Thread] Current Thread [Next in Thread]