
Update version of go-delve/liner to include the Ctrl-Z fix (SIGTSTP should be sent to our process group instead of just sending it to ourselves to correctly imitate a terminal). Fixes #3605
17 lines
228 B
Go
17 lines
228 B
Go
// +build linux darwin openbsd freebsd netbsd
|
|
|
|
package liner
|
|
|
|
import (
|
|
"os"
|
|
"syscall"
|
|
)
|
|
|
|
func handleCtrlZ() {
|
|
pid := os.Getpid()
|
|
pgrp, err := syscall.Getpgid(pid)
|
|
if err == nil {
|
|
syscall.Kill(-pgrp, syscall.SIGTSTP)
|
|
}
|
|
}
|