/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 mandos

  • Committer: Teddy Hogeborn
  • Date: 2009-04-17 01:16:37 UTC
  • Revision ID: teddy@fukt.bsnet.se-20090417011637-bcqjpm7fskm4370v
Code cleanup and one bug fix.

* mandos (Client.enable): Bug fix: Do not enable if already enabled.
  (MandosServer.__init__): Create empty set of clients if none passed.
  (main): Do not create clients set; do not pass a clients set to
          MandosServer.  Use tcp_server.clients throughout.

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
        SO_BINDTODEVICE = None
78
78
 
79
79
 
80
 
version = "1.0.11"
 
80
version = "1.0.8"
81
81
 
82
82
logger = logging.Logger(u'mandos')
83
83
syslogger = (logging.handlers.SysLogHandler
811
811
                    client = c
812
812
                    break
813
813
            else:
814
 
                ipc.write(u"NOTFOUND %s %s\n"
815
 
                          % (fpr, unicode(self.client_address)))
 
814
                ipc.write(u"NOTFOUND %s\n" % fpr)
816
815
                session.bye()
817
816
                return
818
817
            # Have to check if client.still_valid(), since it is
901
900
    def process_request(self, request, client_address):
902
901
        """Overrides and wraps the original process_request().
903
902
        
904
 
        This function creates a new pipe in self.pipe
 
903
        This function creates a new pipe in self.pipe 
905
904
        """
906
905
        self.pipe = os.pipe()
907
906
        super(ForkingMixInWithPipe,