
If we send a process to foreground while the headless instance may get a SIGTTOU/SIGTTIN, if not ignored this signal will stop the headless. It's not clear why this only happens the second time we do this but that's how it is. Also removes the direct syscall to TIOCSPGRP and lets the go runtime do it instead. Fixes #1279
11 lines
144 B
Go
11 lines
144 B
Go
package gdbserial
|
|
|
|
import "syscall"
|
|
|
|
func sysProcAttr(foreground bool) *syscall.SysProcAttr {
|
|
return nil
|
|
}
|
|
|
|
func foregroundSignalsIgnore() {
|
|
}
|