/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to plugins.d/usplash.c

  • Committer: Teddy Hogeborn
  • Date: 2009-04-16 19:16:49 UTC
  • Revision ID: teddy@fukt.bsnet.se-20090416191649-stvuj37ts165w5j2
Code cleanup.  Move some global stuff into main.

* mandos (service, bus): No longer global variables.
  (AvahiService.__init__, ClientDBus.__init__): Take new "bus"
                                                argument.  All callers
                                                changed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
  int fifo_fd;
67
67
  do{
68
68
    fifo_fd = open("/dev/.initramfs/usplash_fifo", O_WRONLY);
69
 
    if((fifo_fd == -1) and (errno != EINTR or interrupted_by_signal)){
 
69
    if(fifo_fd == -1 and (errno != EINTR or interrupted_by_signal)){
70
70
      return false;
71
71
    }
72
72
  }while(fifo_fd == -1);