r748 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Mon Aug 7 20:33:01 CEST 2006
Author: phk
Date: 2006-08-07 20:33:01 +0200 (Mon, 07 Aug 2006)
New Revision: 748
Modified:
trunk/varnish-cache/bin/varnishd/varnishd.c
Log:
An assert to catch silly errors.
Modified: trunk/varnish-cache/bin/varnishd/varnishd.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/varnishd.c 2006-08-07 17:27:16 UTC (rev 747)
+++ trunk/varnish-cache/bin/varnishd/varnishd.c 2006-08-07 18:33:01 UTC (rev 748)
@@ -266,6 +266,7 @@
d_child = strtoul(buf, &p, 0);
assert(p != NULL);
printf("New Pid %d\n", d_child);
+ assert(d_child != 0);
i = strlen(p);
j = write(pipes[1][1], p, i);
assert(j == i);
More information about the varnish-commit
mailing list