mirror of
				https://github.com/binwiederhier/ntfy.git
				synced 2025-10-31 13:02:24 +01:00 
			
		
		
		
	cmd: unify unix-specific code
This commit is contained in:
		
							parent
							
								
									6935d83ab3
								
							
						
					
					
						commit
						e60e770419
					
				
					 3 changed files with 4 additions and 8 deletions
				
			
		|  | @ -1,8 +0,0 @@ | |||
| package cmd | ||||
| 
 | ||||
| import "syscall" | ||||
| 
 | ||||
| func processExists(pid int) bool { | ||||
| 	err := syscall.Kill(pid, syscall.Signal(0)) | ||||
| 	return err == nil | ||||
| } | ||||
|  | @ -1,3 +1,5 @@ | |||
| // +build darwin linux dragonfly freebsd netbsd openbsd | ||||
| 
 | ||||
| package cmd | ||||
| 
 | ||||
| import "syscall" | ||||
|  | @ -1,3 +1,5 @@ | |||
| // +build linux dragonfly freebsd netbsd openbsd | ||||
| 
 | ||||
| package cmd | ||||
| 
 | ||||
| const ( | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 la-ninpre
						la-ninpre