/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 plugin-runner.c

  • Committer: Teddy Hogeborn
  • Date: 2009-09-22 06:51:04 UTC
  • Revision ID: teddy@fukt.bsnet.se-20090922065104-il56jyeb1qshfhiz
Restore some poor D-Bus methods who got a bit hastily deleted.  Enable
writing to the "last_checked_ok" property.

* mandos (ClientDBus.CheckedOK, ClientDBus.Enable,
          ClientDBus.StartChecker, ClientDBus.Disable,
          ClientDBus.StopChecker): Restored.
  (ClientDBus.last_checked_ok_dbus_property): Make writing to this
                                              property do
                                              "self.checked_ok()".

Show diffs side-by-side

added added

removed removed

Lines of Context:
968
968
      goto fallback;
969
969
    }
970
970
    
971
 
    FD_SET(new_plugin->fd, &rfds_all);
 
971
    FD_SET(new_plugin->fd, &rfds_all); /* Spurious warning from
 
972
                                          -Wconversion */
972
973
    
973
974
    if(maxfd < new_plugin->fd){
974
975
      maxfd = new_plugin->fd;
1028
1029
          }
1029
1030
          
1030
1031
          /* Remove the plugin */
1031
 
          FD_CLR(proc->fd, &rfds_all);
 
1032
          FD_CLR(proc->fd, &rfds_all); /* Spurious warning from
 
1033
                                          -Wconversion */
1032
1034
          
1033
1035
          /* Block signal while modifying process_list */
1034
1036
          ret = (int)TEMP_FAILURE_RETRY(sigprocmask
1074
1076
      }
1075
1077
      
1076
1078
      /* This process has not completed.  Does it have any output? */
1077
 
      if(proc->eof or not FD_ISSET(proc->fd, &rfds)){
 
1079
      if(proc->eof or not FD_ISSET(proc->fd, &rfds)){ /* Spurious
 
1080
                                                         warning from
 
1081
                                                         -Wconversion */
1078
1082
        /* This process had nothing to say at this time */
1079
1083
        proc = proc->next;
1080
1084
        continue;