mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	redirect fuser stderr to /dev/null
This commit is contained in:
		
							parent
							
								
									8f40113826
								
							
						
					
					
						commit
						409e532433
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue