gvisor/test/util
Kevin Krakauer 0a8a75f3da Job control: controlling TTYs and foreground process groups.
Adresses a deadlock with the rolled back change:
b6a5b950d2
Creating a session from an orphaned process group was causing a lock to be
acquired twice by a single goroutine. This behavior is addressed, and a test
(OrphanRegression) has been added to pty.cc.

Implemented the following ioctls:
- TIOCSCTTY - set controlling TTY
- TIOCNOTTY - remove controlling tty, maybe signal some other processes
- TIOCGPGRP - get foreground process group. Also enables tcgetpgrp().
- TIOCSPGRP - set foreground process group. Also enabled tcsetpgrp().

Next steps are to actually turn terminal-generated control characters (e.g. C^c)
into signals to the proper process groups, and to send SIGTTOU and SIGTTIN when
appropriate.

PiperOrigin-RevId: 270088599
2019-09-19 11:36:47 -07:00
..
BUILD
capability_util.cc
capability_util.h Fix various spelling issues in the documentation 2019-06-27 14:25:50 -07:00
cleanup.h
epoll_util.cc
epoll_util.h
eventfd_util.h Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
file_descriptor.h
fs_util.cc
fs_util.h
fs_util_test.cc
logging.cc
logging.h
memory_util.h Deflake aio_test. 2019-09-05 16:36:44 -07:00
mount_util.h
multiprocess_util.cc
multiprocess_util.h
posix_error.cc
posix_error.h
posix_error_test.cc
proc_util.cc
proc_util.h Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
proc_util_test.cc Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
pty_util.cc
pty_util.h
rlimit_util.cc
rlimit_util.h
save_util.cc
save_util.h
save_util_linux.cc
save_util_other.cc
signal_util.cc Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
signal_util.h
temp_path.cc
temp_path.h
test_main.cc Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
test_util.cc Migrate from gflags to absl flags 2019-09-16 11:58:27 -07:00
test_util.h
test_util_test.cc
thread_util.h Internal change. 2019-08-26 14:07:17 -07:00
time_util.cc
time_util.h
timer_util.cc
timer_util.h