gitee.com/KyleChenSource/lib-robot@v1.0.2/robottest/robot/signal_linux.go (about) 1 //go:build linux 2 // +build linux 3 4 package robot 5 6 import ( 7 "os" 8 "os/signal" 9 "syscall" 10 ) 11 12 func Signal(ch chan os.Signal) { 13 signal.Notify(ch, syscall.SIGUSR1) 14 }