build-remote: Ugly hackery to get build logs to work
The build hook mechanism expects build log output to go to file descriptor 4, so do that.
This commit is contained in:
		
							parent
							
								
									3a5f04f48c
								
							
						
					
					
						commit
						feefcb3a98
					
				
					 4 changed files with 11 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -31,6 +31,8 @@ std::unique_ptr<SSHMaster::Connection> SSHMaster::startCommand(const std::string
 | 
			
		|||
            throw SysError("duping over stdin");
 | 
			
		||||
        if (dup2(out.writeSide.get(), STDOUT_FILENO) == -1)
 | 
			
		||||
            throw SysError("duping over stdout");
 | 
			
		||||
        if (logFD != -1 && dup2(logFD, STDERR_FILENO) == -1)
 | 
			
		||||
            throw SysError("duping over stderr");
 | 
			
		||||
 | 
			
		||||
        Strings args = { "ssh", host.c_str(), "-x", "-a" };
 | 
			
		||||
        addCommonSSHOpts(args);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue