Propagate remote timeouts properly
This commit is contained in:
		
							parent
							
								
									c6e85ee474
								
							
						
					
					
						commit
						42e9ad8fd1
					
				
					 2 changed files with 38 additions and 31 deletions
				
			
		|  | @ -258,13 +258,8 @@ writeInt($maxSilentTime, $to); | |||
| writeInt($buildTimeout, $to); | ||||
| my $res = readInt($from); | ||||
| if ($res != 0) { | ||||
|     # Note that if we get exit code 100 from `nix-store -r', it | ||||
|     # denotes a permanent build failure (as opposed to an SSH problem | ||||
|     # or a temporary Nix problem).  We propagate this to the caller to | ||||
|     # allow it to distinguish between transient and permanent | ||||
|     # failures. | ||||
|     my $msg = readString($from); | ||||
|     print STDERR "error: $msg (on `$hostName')\n"; | ||||
|     print STDERR "error: $msg on `$hostName'\n"; | ||||
|     exit $res; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue