diff options
| author | Ray Strode <rstrode@redhat.com> | 2008-06-30 17:54:42 -0400 |
|---|---|---|
| committer | Ray Strode <rstrode@redhat.com> | 2008-06-30 17:55:15 -0400 |
| commit | 70b2e61d6292cfeebe95300b5f2dbac22e157420 (patch) | |
| tree | 93ba83307840a5a7caaea4af81d3f5bd25694524 /src | |
| parent | f0412cefff84f1cb654c4d152287723b7dbac276 (diff) | |
Add hack to make maintenance mode probably work when
plymouth is running
It was showing up completely blank before because console
was still redirected
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -191,6 +191,18 @@ on_hide_splash (state_t *state) ply_window_free (state->window); state->window = NULL; } + + if (state->session != NULL) + { + ply_trace ("unredirecting console"); + int fd; + + fd = open ("/dev/console", O_RDWR | O_NOCTTY); + if (fd >= 0) + ioctl (fd, TIOCCONS); + + close (fd); + } } static void |
