summaryrefslogtreecommitdiff
path: root/src/shared/ptyfwd.c
Commit message (Collapse)AuthorAge
* Use space after a silencing (void)Zbigniew Jędrzejewski-Szmek2015-03-13
| | | | | We were using a space more often than not, and this way is codified in CODING_STYLE.
* remove unused includesThomas Hindoe Paaboel Andersen2015-02-23
| | | | | | This patch removes includes that are not used. The removals were found with include-what-you-use which checks if any of the symbols from a header is in use.
* nspawn: when connected to pipes for stdin/stdout, pass them as-is to PID 1Lennart Poettering2015-02-18
| | | | | | | | | | | Previously we always invoked the container PID 1 on /dev/console of the container. With this change we do so only if nspawn was invoked interactively (i.e. its stdin/stdout was connected to a TTY). In all other cases we directly pass through the fds unmodified. This has the benefit that nspawn can be added into shell pipelines. https://bugs.freedesktop.org/show_bug.cgi?id=87732
* ptyfw: add missing error checkLennart Poettering2015-01-14
|
* ptyfwd: simplify how we handle vhangups a bitLennart Poettering2015-01-07
|
* machinectl: make sure that "machinectl login" exits immediately when the ↵Lennart Poettering2015-01-07
| | | | machine it is connected to dies
* run: add a new "-t" mode for invoking a binary on an allocated TTYLennart Poettering2014-12-23
|
* treewide: use log_*_errno whenever %m is in the format stringMichal Schmidt2014-11-28
| | | | | | | | | | | If the format string contains %m, clearly errno must have a meaningful value, so we might as well use log_*_errno to have ERRNO= logged. Using: find . -name '*.[ch]' | xargs sed -r -i -e \ 's/log_(debug|info|notice|warning|error|emergency)\((".*%m.*")/log_\1_errno(errno, \2/' Plus some whitespace, linewrap, and indent adjustments.
* shared: ptyfwd - make coverity happyTom Gundersen2014-11-05
| | | | | | Explicitly ignore return value of ioctl to set window size. Fixes CID#1250804 and CID#1250800.
* ptyforward: rework PTY forwarder logic used by nspawn to utilize the normal ↵Lennart Poettering2014-10-31
| | | | | | | event loop We really should not run manual event loops anymore, but standardize on sd_event, so that we can run sd_bus connections from it eventually.
* ptyfwd: reset nonblocking modeLennart Poettering2014-02-21
| | | | | | | | Apparently bash doesn't turn off non-blocking mode on stdin/stdout when reading from it, so be nice to bash. Ideally bash would do this on its own for robustness reasons, though. https://bugs.freedesktop.org/show_bug.cgi?id=70622
* Revert "ptyfwd: make master terminal attributes raw, too"Lennart Poettering2013-12-18
| | | | | | | This reverts commit e7d43b3cc30764138c90eaaf95d3d8f49e448890. This broke the console terminal when booting up a container, so let's not do this.
* ptyfwd: make master terminal attributes raw, tooLennart Poettering2013-12-18
|
* ptyfwd: Don't set the output prop of stdin, nor the input props of stdout.Luke Shumaker2013-12-11
| | | | | | | It was calling cfmakeraw(3) on the properties for STDIN_FILENO; cfmakeraw sets both input and output properties. If (and only if) stdin and stdout are the same device is this correct. Otherwise, we must change only the input properties of stdin, and only the output properties of stdout.
* ptyfwd: Set the size of the PTY base on the size of stdout, not stdin.Luke Shumaker2013-12-11
|
* machinectl: add new command to spawn a getty inside a containerLennart Poettering2013-10-31
|
* nspawn: split out pty forwaring logic into ptyfwd.cLennart Poettering2013-10-31