1
0
mirror of https://github.com/golang/go synced 2024-11-24 22:57:57 -07:00

exp/ssh: export type signal. Renamed to Signal

R=dave, agl, rsc, golang-dev, n13m3y3r
CC=golang-dev
https://golang.org/cl/5450059
This commit is contained in:
Gustav Paul 2011-12-01 14:06:15 -05:00 committed by Adam Langley
parent c52b7db470
commit fad57c0c03

View File

@ -15,23 +15,23 @@ import (
"io/ioutil"
)
type signal string
type Signal string
// POSIX signals as listed in RFC 4254 Section 6.10.
const (
SIGABRT signal = "ABRT"
SIGALRM signal = "ALRM"
SIGFPE signal = "FPE"
SIGHUP signal = "HUP"
SIGILL signal = "ILL"
SIGINT signal = "INT"
SIGKILL signal = "KILL"
SIGPIPE signal = "PIPE"
SIGQUIT signal = "QUIT"
SIGSEGV signal = "SEGV"
SIGTERM signal = "TERM"
SIGUSR1 signal = "USR1"
SIGUSR2 signal = "USR2"
SIGABRT Signal = "ABRT"
SIGALRM Signal = "ALRM"
SIGFPE Signal = "FPE"
SIGHUP Signal = "HUP"
SIGILL Signal = "ILL"
SIGINT Signal = "INT"
SIGKILL Signal = "KILL"
SIGPIPE Signal = "PIPE"
SIGQUIT Signal = "QUIT"
SIGSEGV Signal = "SEGV"
SIGTERM Signal = "TERM"
SIGUSR1 Signal = "USR1"
SIGUSR2 Signal = "USR2"
)
// A Session represents a connection to a remote command or shell.
@ -130,7 +130,7 @@ type signalMsg struct {
// Signal sends the given signal to the remote process.
// sig is one of the SIG* constants.
func (s *Session) Signal(sig signal) error {
func (s *Session) Signal(sig Signal) error {
req := signalMsg{
PeersId: s.peersId,
Request: "signal",