From 6ea832a20700f5282c08c70f38422c6ab290a0b5 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 18 May 2011 01:07:31 +0200 Subject: exec: hangup/reset/deallocate VTs in gettys Explicitly disconnect all clients from a VT when a getty starts/finishes (requires TIOCVHANGUP, available in 2.6.29). Explicitly deallocate getty VTs in order to flush scrollback buffer. Explicitly reset terminals to a defined state before spawning getty. --- src/swap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/swap.c') diff --git a/src/swap.c b/src/swap.c index ef001a98bf..04df5854ad 100644 --- a/src/swap.c +++ b/src/swap.c @@ -940,7 +940,7 @@ static void swap_sigchld_event(Unit *u, pid_t pid, int code, int status) { s->failure = s->failure || !success; if (s->control_command) { - exec_status_exit(&s->control_command->exec_status, pid, code, status, s->exec_context.utmp_id); + exec_status_exit(&s->control_command->exec_status, &s->exec_context, pid, code, status); s->control_command = NULL; s->control_command_id = _SWAP_EXEC_COMMAND_INVALID; } -- cgit v1.2.3-54-g00ecf