github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/os/exec_posix.go (about) 1 // Copyright 2009 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build aix || darwin || dragonfly || freebsd || (js && wasm) || linux || netbsd || openbsd || solaris || wasip1 || windows 6 7 package os 8 9 import ( 10 "syscall" 11 ) 12 13 // The only signal values guaranteed to be present in the os package on all 14 // systems are os.Interrupt (send the process an interrupt) and os.Kill (force 15 // the process to exit). On Windows, sending os.Interrupt to a process with 16 // os.Process.Signal is not implemented; it will return an error instead of 17 // sending a signal. 18 var ( 19 Interrupt Signal = syscall.SIGINT 20 Kill Signal = syscall.SIGKILL 21 )