File: 22

package info (click to toggle)
procmail 3.22-27
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 2,128 kB
  • sloc: ansic: 9,888; sh: 1,957; makefile: 136
file content (20 lines) | stat: -rw-r--r-- 645 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: Santiago Vila <sanvila@debian.org>
Subject: Changed formisc.c so that formail -n actually works
Bug-Debian: http://bugs.debian.org/151627
X-Debian-version: 3.22-16 

--- a/src/formisc.c
+++ b/src/formisc.c
@@ -183,10 +183,10 @@
 		 retval=excode;
 	    }					       /* reap some children */
 	while(childlimit&&children>=childlimit||(child=fork())==-1&&children)
-	   for(--children;(excode=waitfor((pid_t)0))!=NO_PROCESS;)
+	   for(--children;(excode=waitfor((pid_t)0))!=NO_PROCESS;--children)
 	    { if(excode!=EXIT_SUCCESS)
 		 retval=excode;
-	      if(--children<=maxchild)
+	      if(children<=maxchild)
 		 break;
 	    }
       }