mirror of
https://github.com/yudai/gotty.git
synced 2026-01-07 18:18:50 +01: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
|
|
@ -75,7 +75,7 @@ func (context *clientContext) goHandleClient() {
|
|||
|
||||
// Even if the PTY has been closed,
|
||||
// Read(0 in processSend() keeps blocking and the process doen't exit
|
||||
context.command.Process.Signal(syscall.SIGHUP)
|
||||
context.command.Process.Signal(syscall.Signal(context.app.options.CloseSignal))
|
||||
|
||||
context.command.Wait()
|
||||
context.connection.Close()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue