Tweaks to shared server process monitoring verbosity and ferocity.
This commit is contained in:
		
							parent
							
								
									1ca3775552
								
							
						
					
					
						commit
						5fa57f1c22
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
					@ -767,10 +767,12 @@ namespace IPC {
 | 
				
			||||||
              default:
 | 
					              default:
 | 
				
			||||||
                if(*counter > 10 && *counter < 126 ){
 | 
					                if(*counter > 10 && *counter < 126 ){
 | 
				
			||||||
                  if(*counter < 30){
 | 
					                  if(*counter < 30){
 | 
				
			||||||
                    ERROR_MSG("process unresponsive. sending sigterm to pid %d",tmpPID);
 | 
					                    if (*counter > 15){
 | 
				
			||||||
 | 
					                      WARN_MSG("Process %d is unresponsive",tmpPID);
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
                    Util::Procs::Stop(tmpPID); //soft kill  
 | 
					                    Util::Procs::Stop(tmpPID); //soft kill  
 | 
				
			||||||
                  } else {      
 | 
					                  } else {      
 | 
				
			||||||
                    FAIL_MSG("process really unresponsive. sending sigkill to pid %d", tmpPID);
 | 
					                    ERROR_MSG("Killing unresponsive process %d", tmpPID);
 | 
				
			||||||
                    Util::Procs::Murder(tmpPID); //improved kill      
 | 
					                    Util::Procs::Murder(tmpPID); //improved kill      
 | 
				
			||||||
                  }
 | 
					                  }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue