[systemd-devel] [PATCH 1/2] ptyfwd: Set the size of the PTY base on the size of stdout, not stdin.

2013-11-23 Thread Luke Shumaker
--- src/shared/ptyfwd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/ptyfwd.c b/src/shared/ptyfwd.c index 7225b93..85a0ddc 100644 --- a/src/shared/ptyfwd.c +++ b/src/shared/ptyfwd.c @@ -305,7 +305,7 @@ static int process_pty_loop(int master, sigset_t *mask,

[systemd-devel] nspawn (ptyfwd): Correctly handle output redirection

2013-11-23 Thread Luke Shumaker
At Tue, 5 Nov 2013 19:59:46 +0100, Lennart Poettering wrote: On Mon, 04.11.13 11:05, Luke T. Shumaker (luke...@sbcglobal.net) wrote: A couple of weeks ago, I reported a bug that systemd-nspawn does not correctly handle I/O redirection[1]. I described in detail the several smaller bugs

[systemd-devel] [PATCH 2/2] ptyfwd: Don't set the output prop of stdin, nor the input props of stdout.

2013-11-23 Thread Luke Shumaker
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. ---

Re: [systemd-devel] Restart instantiated services after suspend

2013-11-23 Thread Marcos Felipe Rasia de Mello
2013/11/20 Lennart Poettering lenn...@poettering.net: On Tue, 19.11.13 14:18, Marcos Felipe Rasia de Mello (marcos...@gmail.com) wrote: Hi folks, I am trying to disable HDDs power management in a systemd way (aka no shell scripts :) /etc/udev/rules.d/99-hdparm.rules SUBSYSTEM==block,

[systemd-devel] [PATCH 1/2] systemctl: refactor show()

2013-11-23 Thread Shawn Landden
v2, don't leave in unused function --- src/systemctl/systemctl.c | 36 +--- 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 84826a3..6cb7a82 100644 --- a/src/systemctl/systemctl.c +++

[systemd-devel] [PATCH 2/2] systemctl: add systemctl cat

2013-11-23 Thread Shawn Landden
--- TODO | 2 -- src/shared/fileio.c | 73 - src/shared/fileio.h | 1 + src/systemctl/systemctl.c | 91 +++ 4 files changed, 164 insertions(+), 3 deletions(-) diff --git a/TODO