mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-30 19:22:09 +00:00
Moved suicide code out to platform specific files
This commit is contained in:
parent
3dd167d770
commit
216129b6b6
3 changed files with 21 additions and 2 deletions
7
act/artifactcache/handler_linux.go
Normal file
7
act/artifactcache/handler_linux.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
package artifactcache
|
||||
|
||||
import "syscall"
|
||||
|
||||
func suicide() error {
|
||||
return syscall.Kill(syscall.Getpid(), syscall.SIGTERM)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue