Wichert Akkerman лет назад: 25
Родитель
Сommit
758495bffe
3 измененных файлов с 6 добавлено и 1 удалено
  1. 4 0
      ChangeLog
  2. 1 0
      debian/changelog
  3. 1 1
      utils/start-stop-daemon.c

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+Mon Jul 16 12:55:49 CEST 2001 Wichert Akkerman <wakkerma@debian.org>
+
+  * utils/start-stop-daemon.c: Fix test for nice(2) failure
+
 Mon Jul 16 12:44:51 CEST 2001 Wichert Akkerman <wakkerma@debian.org>
 Mon Jul 16 12:44:51 CEST 2001 Wichert Akkerman <wakkerma@debian.org>
 
 
   * dselect/dselect.h: make baselist::setheights() virtual
   * dselect/dselect.h: make baselist::setheights() virtual

+ 1 - 0
debian/changelog

@@ -22,6 +22,7 @@ dpkg (1.10) unstable; urgency=low
   * Make colours in dselect user-configurable. Closes: Bug#103994
   * Make colours in dselect user-configurable. Closes: Bug#103994
   * Make Q do an abort in the method selection menu to make things more
   * Make Q do an abort in the method selection menu to make things more
     consistent with the package list
     consistent with the package list
+  * Fix test for nice(2) failure in start-stop-daemon. Closes: Bug#104561
 
 
  -- Wichert Akkerman <wakkerma@debian.org>  UNRELEASED
  -- Wichert Akkerman <wakkerma@debian.org>  UNRELEASED
 
 

+ 1 - 1
utils/start-stop-daemon.c

@@ -1151,7 +1151,7 @@ main(int argc, char **argv)
 		dup(fd); /* stderr */
 		dup(fd); /* stderr */
 	}
 	}
 	if (nicelevel) {
 	if (nicelevel) {
-		if (nice(nicelevel))
+		if (nice(nicelevel)==-1)
 			fatal("Unable to alter nice level by %i: %s", nicelevel,
 			fatal("Unable to alter nice level by %i: %s", nicelevel,
 				strerror(errno));
 				strerror(errno));
 	}
 	}