/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 at bsnet
  • Date: 2010-10-08 18:00:11 UTC
  • Revision ID: teddy@fukt.bsnet.se-20101008180011-474ehljotrcn3sba
* mandos (main): Bug fix: Fork before connecting to D-Bus.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1847
1847
        # No console logging
1848
1848
        logger.removeHandler(console)
1849
1849
    
 
1850
    # Need to fork before connecting to D-Bus
 
1851
    if not debug:
 
1852
        # Close all input and output, do double fork, etc.
 
1853
        daemon()
1850
1854
    
1851
1855
    global main_loop
1852
1856
    # From the Avahi example code
1870
1874
    if server_settings["interface"]:
1871
1875
        service.interface = (if_nametoindex
1872
1876
                             (str(server_settings[u"interface"])))
1873
 
 
1874
 
    if not debug:
1875
 
        # Close all input and output, do double fork, etc.
1876
 
        daemon()
1877
 
        
 
1877
    
1878
1878
    global multiprocessing_manager
1879
1879
    multiprocessing_manager = multiprocessing.Manager()
1880
1880