patch-2.4.6 linux/scripts/docproc.c

Next file: linux/scripts/header.tk
Previous file: linux/scripts/docgen
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.5/linux/scripts/docproc.c linux/scripts/docproc.c
@@ -18,6 +18,7 @@
 	char type[64];
 	int i;
 	int vp=2;
+	int ret=0;
 	pid_t pid;
 
 
@@ -96,8 +97,8 @@
 			perror("exec scripts/kernel-doc");
 			exit(1);
 		default:
-			waitpid(pid, NULL,0);
+			waitpid(pid, &ret ,0);
 		}
 	}
-	exit(0);
+	exit(ret);
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)