Implement Container::console() 08/49308/5
authorLukasz Pawelczyk <l.pawelczyk@samsung.com>
Thu, 8 Oct 2015 11:28:31 +0000 (13:28 +0200)
committerLukasz Pawelczyk <l.pawelczyk@samsung.com>
Wed, 14 Oct 2015 10:33:18 +0000 (12:33 +0200)
commitfdd084637d80bc804cced5e846158e8ac31c2252
tree14badcfa389620c920c4e26220630d746caa4d64
parent732fd0b180e78e53b791c18dc39a18f1fa8e8e30
Implement Container::console()

[Feature]       An ability to connect to a PTY given to the container
[Cause]         To be able to use the container
[Solution]      Use PTYs, connect to them and pass read/writes between
                stdin/stdout and pty master.
[Verification]  There is a simple test program in junk for now

Additional changes with patchset:
- extended signal functions
- fixed signalFD class

Change-Id: Ia6320ee32d537311ef2675eb79f3e837192251b8
21 files changed:
common/utils/signal.cpp
common/utils/signal.hpp
common/utils/signalfd.cpp
common/utils/signalfd.hpp
junk/Makefile [new file with mode: 0644]
junk/run-shell.cpp [new file with mode: 0644]
libs/ipc/epoll/event-poll.cpp
libs/lxcpp/CMakeLists.txt
libs/lxcpp/commands/console.cpp [new file with mode: 0644]
libs/lxcpp/commands/console.hpp [new file with mode: 0644]
libs/lxcpp/commands/prep-guest-terminal.cpp
libs/lxcpp/commands/prep-host-terminal.cpp
libs/lxcpp/commands/prep-host-terminal.hpp
libs/lxcpp/container-impl.cpp
libs/lxcpp/container-impl.hpp
libs/lxcpp/container.hpp
libs/lxcpp/terminal-config.hpp
libs/lxcpp/terminal.cpp
libs/lxcpp/terminal.hpp
server/server.cpp
tests/unit_tests/utils/ut-signalfd.cpp