Make ~DerivationGoal more reliable
This commit is contained in:
		
							parent
							
								
									d436e44ae3
								
							
						
					
					
						commit
						bab8d9b52a
					
				
					 1 changed files with 3 additions and 7 deletions
				
			
		| 
						 | 
					@ -851,13 +851,9 @@ DerivationGoal::~DerivationGoal()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    /* Careful: we should never ever throw an exception from a
 | 
					    /* Careful: we should never ever throw an exception from a
 | 
				
			||||||
       destructor. */
 | 
					       destructor. */
 | 
				
			||||||
    try {
 | 
					    try { killChild(); } catch (...) { ignoreException(); }
 | 
				
			||||||
        killChild();
 | 
					    try { deleteTmpDir(false); } catch (...) { ignoreException(); }
 | 
				
			||||||
        deleteTmpDir(false);
 | 
					    try { closeLogFile(); } catch (...) { ignoreException(); }
 | 
				
			||||||
        closeLogFile();
 | 
					 | 
				
			||||||
    } catch (...) {
 | 
					 | 
				
			||||||
        ignoreException();
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue