示例#1
0
文件: exec_posix.go 项目: jnwhiteh/go
func (sig UnixSignal) String() string {
	s := runtime.Signame(int32(sig))
	if len(s) > 0 {
		return s
	}
	return "UnixSignal"
}
示例#2
0
func (sig UnixSignal) String() string {
	s := runtime.Signame(int32(sig))
	if len(s) > 0 {
		return s
	}
	return "Signal " + strconv.Itoa(int(sig))
}