~brian-murray/ubuntu/oneiric/plymouth/bug-860371

« back to all changes in this revision

Viewing changes to src/main.c

  • Committer: Ray Strode
  • Date: 2008-06-30 21:55:15 UTC
  • Revision ID: git-v1:70b2e61d6292cfeebe95300b5f2dbac22e157420
Add hack to make maintenance mode probably work when
plymouth is running

It was showing up completely blank before because console
was still redirected

Show diffs side-by-side

added added

removed removed

Lines of Context:
191
191
      ply_window_free (state->window);
192
192
      state->window = NULL;
193
193
    }
 
194
 
 
195
  if (state->session != NULL)
 
196
    {
 
197
      ply_trace ("unredirecting console");
 
198
      int fd;
 
199
 
 
200
      fd = open ("/dev/console", O_RDWR | O_NOCTTY);
 
201
      if (fd >= 0)
 
202
          ioctl (fd, TIOCCONS);
 
203
 
 
204
      close (fd);
 
205
    }
194
206
}
195
207
 
196
208
static void