Skip to content

v.util.vwatchtty

fn continue_process_group_of #

fn continue_process_group_of(pid int)

continue_process_group_of resumes the worker and watched child after the shell continues the manager job.

fn continue_signal #

fn continue_signal() os.Signal

continue_signal returns the platform's SIGCONT value.

fn process_group #

fn process_group() int

process_group returns the watcher's current process group.

fn restore_foreground_process_group #

fn restore_foreground_process_group(watcher_pgid int)

restore_foreground_process_group returns terminal control to the watcher only when the current worker process group still owns it.

fn set_foreground_process_group #

fn set_foreground_process_group(pid int, watcher_pgid int) bool

set_foreground_process_group gives the child process group control of stdin's terminal.

fn suspend_manager_process_group #

fn suspend_manager_process_group(manager_pgid int)

suspend_manager_process_group stops the manager's original process group, then stops the foreground worker that received SIGTSTP.

fn terminal_stop_signals #

fn terminal_stop_signals() []os.Signal

terminal_stop_signals returns the platform's terminal stop signal values.