Просмотр исходного кода

s-s-d: Initialize nentries from sysctl(2) on */kFreeBSD

Guillem Jover лет назад: 10
Родитель
Сommit
4e3993e3e6
2 измененных файлов с 3 добавлено и 0 удалено
  1. 2 0
      debian/changelog
  2. 1 0
      utils/start-stop-daemon.c

+ 2 - 0
debian/changelog

@@ -10,6 +10,8 @@ dpkg (1.18.6) UNRELEASED; urgency=medium
   * Rename sysctl() “name” variable to “mib”, to avoid a clash with the
     call site function argument with the same name in start-stop-daemon.
     This fixes a build failure on */kFreeBSD systems.
+  * Initialize number of entries on initial process scan in start-stop-daemon
+    on */kFreeBSD.
   * Packaging:
     - Bump Standards-Version to 3.9.8 (no changes needed).
 

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

@@ -1936,6 +1936,7 @@ do_procinit(void)
 		return false;
 	if (len == 0)
 		return false;
+	nentries = len;
 
 	for (i = 0; i < nentries; i++) {
 		enum status_code pid_status;