mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-28 10:51:44 +01:00 
			
		
		
		
	Remove flag that cant be trapped
This commit is contained in:
		
							parent
							
								
									9954a3c599
								
							
						
					
					
						commit
						7c774bc547
					
				
							
								
								
									
										2
									
								
								app.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								app.go
									
									
									
									
									
								
							@ -356,7 +356,7 @@ func (h *Headscale) Serve() error {
 | 
			
		||||
 | 
			
		||||
	// Handle common process-killing signals so we can gracefully shut down:
 | 
			
		||||
	sigc := make(chan os.Signal, 1)
 | 
			
		||||
	signal.Notify(sigc, os.Interrupt, os.Kill, syscall.SIGTERM)
 | 
			
		||||
	signal.Notify(sigc, os.Interrupt, syscall.SIGTERM)
 | 
			
		||||
	go func(c chan os.Signal) {
 | 
			
		||||
		// Wait for a SIGINT or SIGKILL:
 | 
			
		||||
		sig := <-c
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user