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

Bug#190581: nice() doesn't work



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 to: