From: Wichert Akkerman Date: Mon, 16 Jul 2001 10:59:45 +0000 (+0000) Subject: Fix test for nice(2) failure X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=758495bffe128aba2af76f8fd0e36c81e68c8dc9;p=dpkg Fix test for nice(2) failure --- diff --git a/ChangeLog b/ChangeLog index 85094184..fc90ec0c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Jul 16 12:55:49 CEST 2001 Wichert Akkerman + + * utils/start-stop-daemon.c: Fix test for nice(2) failure + Mon Jul 16 12:44:51 CEST 2001 Wichert Akkerman * dselect/dselect.h: make baselist::setheights() virtual diff --git a/debian/changelog b/debian/changelog index 3946b084..72bd53ac 100644 --- a/debian/changelog +++ b/debian/changelog @@ -22,6 +22,7 @@ dpkg (1.10) unstable; urgency=low * Make colours in dselect user-configurable. Closes: Bug#103994 * Make Q do an abort in the method selection menu to make things more consistent with the package list + * Fix test for nice(2) failure in start-stop-daemon. Closes: Bug#104561 -- Wichert Akkerman UNRELEASED diff --git a/utils/start-stop-daemon.c b/utils/start-stop-daemon.c index 9ea7c581..e6f5bed2 100644 --- a/utils/start-stop-daemon.c +++ b/utils/start-stop-daemon.c @@ -1151,7 +1151,7 @@ main(int argc, char **argv) dup(fd); /* stderr */ } if (nicelevel) { - if (nice(nicelevel)) + if (nice(nicelevel)==-1) fatal("Unable to alter nice level by %i: %s", nicelevel, strerror(errno)); }