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 Job control: controlling TTYs and foreground process groups. 2019-09-19 11:36:47 -07:00
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
file_descriptor.h
fs_util.cc Implement /proc/net/udp. 2019-08-29 14:30:41 -07:00
fs_util.h Implement /proc/net/udp. 2019-08-29 14:30:41 -07:00
fs_util_test.cc Fix suggestions from clang. 2019-06-28 15:32:29 -07:00
logging.cc Fix suggestions from clang. 2019-06-28 15:32:29 -07:00
logging.h
memory_util.h Deflake aio_test. 2019-09-05 16:36:44 -07:00
mount_util.h Fix suggestions from clang. 2019-06-28 15:32:29 -07:00
multiprocess_util.cc
multiprocess_util.h
posix_error.cc
posix_error.h Fix suggestions from clang. 2019-06-28 15:32:29 -07:00
posix_error_test.cc
proc_util.cc Fix suggestions from clang. 2019-06-28 15:32:29 -07:00
proc_util.h
proc_util_test.cc
pty_util.cc Job control: controlling TTYs and foreground process groups. 2019-09-19 11:36:47 -07:00
pty_util.h Job control: controlling TTYs and foreground process groups. 2019-09-19 11:36:47 -07:00
rlimit_util.cc
rlimit_util.h
save_util.cc Internal change. 2019-08-26 14:07:17 -07:00
save_util.h Internal change. 2019-08-26 14:07:17 -07:00
save_util_linux.cc Internal change. 2019-08-26 14:07:17 -07:00
save_util_other.cc Internal change. 2019-08-26 14:07:17 -07:00
signal_util.cc
signal_util.h
temp_path.cc Fix suggestions from clang. 2019-06-28 15:32:29 -07:00
temp_path.h Fix suggestions from clang. 2019-06-28 15:32:29 -07:00
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 Migrate from gflags to absl flags 2019-09-16 11:58:27 -07:00
test_util_test.cc
thread_util.h Internal change. 2019-08-26 14:07:17 -07:00
time_util.cc Extract SleepSafe from test_util 2019-05-24 12:58:46 -07:00
time_util.h
timer_util.cc
timer_util.h Fix various spelling issues in the documentation 2019-06-27 14:25:50 -07:00