[Pkg-sysvinit-commits] r645 - sysvinit/trunk/debian/patches

Thomas Hood jdthood-guest at costa.debian.org
Mon Jan 16 10:20:02 UTC 2006


Author: jdthood-guest
Date: 2006-01-16 10:20:02 +0000 (Mon, 16 Jan 2006)
New Revision: 645

Modified:
   sysvinit/trunk/debian/patches/50_bootlogd_exitcode.dpatch
Log:
Improve comments

Modified: sysvinit/trunk/debian/patches/50_bootlogd_exitcode.dpatch
===================================================================
--- sysvinit/trunk/debian/patches/50_bootlogd_exitcode.dpatch	2006-01-16 09:57:50 UTC (rev 644)
+++ sysvinit/trunk/debian/patches/50_bootlogd_exitcode.dpatch	2006-01-16 10:20:02 UTC (rev 645)
@@ -17,14 +17,14 @@
 -		if (fork())
 +		pid_t child_pid = fork();
 +		switch (child_pid) {
-+		case -1: /* error */
++		case -1: /* I am parent and the attempt to create a child failed */
 +			fprintf(stderr, "bootlogd: fork failed: %s\n",
 +				strerror(errno));
  			exit(1);
 +			break;
-+		case 0: /* child, ignore */
++		case 0: /* I am the child */
 +			break;
-+		default: /* parend with child pid returned from fork() */
++		default: /* I am parent and got child's pid */
 +			exit(0);
 +			break;
 +		}




More information about the Pkg-sysvinit-commits mailing list