Commit 0d218973 authored by Tollef Fog Heen's avatar Tollef Fog Heen

Merge r4338: 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



git-svn-id: http://www.varnish-cache.org/svn/branches/2.0@4343 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent b954101c
......@@ -463,7 +463,7 @@ Symbol_hack(const char *a0)
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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment