File: signal_unix.go

package info (click to toggle)
golang-github-go-delve-liner 0.0~git20211124.709274f-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 216 kB
  • sloc: makefile: 2
file content (15 lines) | stat: -rw-r--r-- 201 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// +build linux darwin openbsd freebsd netbsd

package liner

import (
	"os"
	"syscall"
)

func handleCtrlZ() {
	p, err := os.FindProcess(os.Getpid())
	if err == nil {
		p.Signal(syscall.SIGTSTP)
	}
}