Moved suicide code out to platform specific files

This commit is contained in:
volkmnv 2025-10-20 13:54:56 +02:00
parent a7487dadd7
commit 080b8ecaff
3 changed files with 20 additions and 2 deletions

View file

@ -0,0 +1,12 @@
package artifactcache
import "syscall"
func suicide() error {
handle, err := syscall.GetCurrentProcess()
if err != nil {
return err
}
return syscall.TerminateProcess(handle, uint32(syscall.SIGTERM))
}