* Pass the verbosity level to the worker.
This commit is contained in:
		
							parent
							
								
									1e16d20655
								
							
						
					
					
						commit
						052b6fb149
					
				
					 1 changed files with 8 additions and 2 deletions
				
			
		| 
						 | 
					@ -32,6 +32,10 @@ RemoteStore::RemoteStore()
 | 
				
			||||||
    if (worker == "")
 | 
					    if (worker == "")
 | 
				
			||||||
        worker = nixBinDir + "/nix-worker";
 | 
					        worker = nixBinDir + "/nix-worker";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    string verbosityArg = "-";
 | 
				
			||||||
 | 
					    for (int i = 1; i < verbosity; ++i)
 | 
				
			||||||
 | 
					        verbosityArg += "v";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    child = fork();
 | 
					    child = fork();
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    switch (child) {
 | 
					    switch (child) {
 | 
				
			||||||
| 
						 | 
					@ -57,8 +61,10 @@ RemoteStore::RemoteStore()
 | 
				
			||||||
                throw SysError("dupping stderr");
 | 
					                throw SysError("dupping stderr");
 | 
				
			||||||
            close(fdDebug);
 | 
					            close(fdDebug);
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
            execlp(worker.c_str(), worker.c_str(),
 | 
					            execlp(worker.c_str(), worker.c_str(), "--slave",
 | 
				
			||||||
                "-vvv", "--slave", NULL);
 | 
					                /* hacky - must be at the end */
 | 
				
			||||||
 | 
					                verbosityArg == "-" ? NULL : verbosityArg.c_str(),
 | 
				
			||||||
 | 
					                NULL);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            throw SysError(format("executing `%1%'") % worker);
 | 
					            throw SysError(format("executing `%1%'") % worker);
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue