aboutsummaryrefslogtreecommitdiffstats
path: root/passes/cmds
diff options
context:
space:
mode:
authorPepijn de Vos <pepijndevos@gmail.com>2019-11-26 12:56:06 +0100
committerMarcelina Koƛcielnicka <mwk@0x04.net>2020-01-28 10:02:41 +0100
commit409e5324333d881dadd64fa211b9a6aa86ce36e9 (patch)
tree95cb6d15169a8f9e9f2f9727a8d20e23f11bf1d8 /passes/cmds
parent8f40113826b6c53117d08fa1347ef8be35ccac1a (diff)
downloadyosys-409e5324333d881dadd64fa211b9a6aa86ce36e9.tar.gz
yosys-409e5324333d881dadd64fa211b9a6aa86ce36e9.tar.bz2
yosys-409e5324333d881dadd64fa211b9a6aa86ce36e9.zip
redirect fuser stderr to /dev/null
Diffstat (limited to 'passes/cmds')
-rw-r--r--passes/cmds/show.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/cmds/show.cc b/passes/cmds/show.cc
index a3e969ef1..eeef24bde 100644
--- a/passes/cmds/show.cc
+++ b/passes/cmds/show.cc
@@ -873,7 +873,7 @@ struct ShowPass : public Pass {
#ifdef __APPLE__
std::string cmd = stringf("ps -fu %d | grep -q '[ ]%s' || xdot '%s' &", getuid(), dot_file.c_str(), dot_file.c_str());
#else
- std::string cmd = stringf("{ test -f '%s.pid' && fuser -s '%s.pid'; } || ( echo $$ >&3; exec xdot '%s'; ) 3> '%s.pid' &", dot_file.c_str(), dot_file.c_str(), dot_file.c_str(), dot_file.c_str());
+ std::string cmd = stringf("{ test -f '%s.pid' && fuser -s '%s.pid' 2> /dev/null; } || ( echo $$ >&3; exec xdot '%s'; ) 3> '%s.pid' &", dot_file.c_str(), dot_file.c_str(), dot_file.c_str(), dot_file.c_str());
#endif
log("Exec: %s\n", cmd.c_str());
if (run_command(cmd) != 0)