Sign in
go
/
gofrontend
/
42efec8c126cf3787bc7c89d9c7f224eff7c5a21
/
.
/
libgo
/
go
/
runtime
/
testdata
/
testwinsignal
/
main.go
blob: 1e7c9475fd663153b941f1075ed8828feb791fb7 [
file
] [
log
] [
blame
]
package main
import (
"fmt"
"os"
"os/signal"
"time"
)
func main() {
c := make(chan os.Signal, 1)
signal.Notify(c)
fmt.Println("ready")
sig := <-c
time.Sleep(time.Second)
fmt.Println(sig)
}