Changeset 395


Ignore:
Timestamp:
07/22/10 10:50:45 (10 years ago)
Author:
sander
Message:

Prevent running in daemon mode on Windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/factory/src/factory.py

    r381 r395  
    2727import socket 
    2828import logging 
     29import platform 
    2930import traceback 
    3031import ConfigParser 
     
    5657                        self.daemon = self.config.getboolean('global', 'daemon') 
    5758                except ConfigParser.NoOptionError, e: 
     59                        self.daemon = False 
     60 
     61                if self.daemon and platform.system() == 'Windows': 
     62                        logging.error('Daemon mode is not supported on Windows. The factory will run in the foreground.') 
    5863                        self.daemon = False 
    5964 
Note: See TracChangeset for help on using the changeset viewer.