mirror of
https://github.com/golang/go
synced 2024-11-23 23:30:10 -07:00
os: clarify docs on Interrupt and Kill
Note that Interrupt will compile but not work on Windows. Fixes #22454 Change-Id: If011c32211f4bb45d458317e113b9794d5b4a4b1 Reviewed-on: https://go-review.googlesource.com/81035 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
415349575d
commit
871b79316a
@ -11,9 +11,10 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
// The only signal values guaranteed to be present on all systems
|
// The only signal values guaranteed to be present in the os package
|
||||||
// are Interrupt (send the process an interrupt) and Kill (force
|
// on all systems are Interrupt (send the process an interrupt) and
|
||||||
// the process to exit).
|
// Kill (force the process to exit). Interrupt is not implemented on
|
||||||
|
// Windows; using it with os.Process.Signal will return an error.
|
||||||
var (
|
var (
|
||||||
Interrupt Signal = syscall.Note("interrupt")
|
Interrupt Signal = syscall.Note("interrupt")
|
||||||
Kill Signal = syscall.Note("kill")
|
Kill Signal = syscall.Note("kill")
|
||||||
|
@ -10,9 +10,10 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
)
|
)
|
||||||
|
|
||||||
// The only signal values guaranteed to be present on all systems
|
// The only signal values guaranteed to be present in the os package
|
||||||
// are Interrupt (send the process an interrupt) and Kill (force
|
// on all systems are Interrupt (send the process an interrupt) and
|
||||||
// the process to exit).
|
// Kill (force the process to exit). Interrupt is not implemented on
|
||||||
|
// Windows; using it with os.Process.Signal will return an error.
|
||||||
var (
|
var (
|
||||||
Interrupt Signal = syscall.SIGINT
|
Interrupt Signal = syscall.SIGINT
|
||||||
Kill Signal = syscall.SIGKILL
|
Kill Signal = syscall.SIGKILL
|
||||||
|
Loading…
Reference in New Issue
Block a user