r4338 - trunk/varnish-cache/bin/varnishd

tfheen at projects.linpro.no tfheen at projects.linpro.no
Fri Oct 23 09:58:41 CEST 2009


Author: tfheen
Date: 2009-10-23 09:58:41 +0200 (Fri, 23 Oct 2009)
New Revision: 4338

Modified:
   trunk/varnish-cache/bin/varnishd/varnishd.c
Log:
Send stderr to /dev/null when running nm

Previously, running varnishd -V would sometimes say:

nm: 'varnishd': No such file

which is wrong.  Silence this message

Modified: trunk/varnish-cache/bin/varnishd/varnishd.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/varnishd.c	2009-10-21 12:35:23 UTC (rev 4337)
+++ trunk/varnish-cache/bin/varnishd/varnishd.c	2009-10-23 07:58:41 UTC (rev 4338)
@@ -436,7 +436,7 @@
 	struct symbols *s;
 
 	p = NULL;
-	asprintf(&p, "nm -an %s", a0);
+	asprintf(&p, "nm -an %s 2>/dev/null", a0);
 	if (p == NULL)
 		return;
 	fi = popen(p, "r");



More information about the varnish-commit mailing list