mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-04 03:27:23 -05:00 
			
		
		
		
	Fix force quit using SIGINT
Only the outside function call is executed in a new goroutine when invoking 'go'. Oops. Force quits (2 SIGINTs) now work again.
This commit is contained in:
		
							parent
							
								
									e7f08bff38
								
							
						
					
					
						commit
						65bc696b0c
					
				@ -42,7 +42,9 @@ func trapSignalsCrossPlatform() {
 | 
				
			|||||||
				os.Remove(PidFile)
 | 
									os.Remove(PidFile)
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			go os.Exit(executeShutdownCallbacks("SIGINT"))
 | 
								go func() {
 | 
				
			||||||
 | 
									os.Exit(executeShutdownCallbacks("SIGINT"))
 | 
				
			||||||
 | 
								}()
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}()
 | 
						}()
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user