mirror of
https://github.com/yudai/gotty.git
synced 2025-09-22 05:50:48 +02:00
Add configuration to modify signal sent to child process when close it
This commit is contained in:
parent
95ad63e5ae
commit
888fe870dc
3 changed files with 4 additions and 1 deletions
|
@ -64,6 +64,7 @@ type Options struct {
|
|||
ReconnectTime int `hcl:"reconnect_time"`
|
||||
Once bool `hcl:"once"`
|
||||
PermitArguments bool `hcl:"permit_arguments"`
|
||||
CloseSignal int `hcl:"close_signal"`
|
||||
Preferences HtermPrefernces `hcl:"preferences"`
|
||||
RawPreferences map[string]interface{} `hcl:"preferences"`
|
||||
}
|
||||
|
@ -88,6 +89,7 @@ var DefaultOptions = Options{
|
|||
EnableReconnect: false,
|
||||
ReconnectTime: 10,
|
||||
Once: false,
|
||||
CloseSignal: 1, // syscall.SIGHUP
|
||||
Preferences: HtermPrefernces{},
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue