/[svn.andrew.net.au]/usbspindownd/usbspindownd.py
ViewVC logotype

Diff of /usbspindownd/usbspindownd.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 33 by apollock, Thu Jan 31 07:58:04 2008 UTC revision 34 by apollock, Thu Jan 31 19:03:28 2008 UTC
# Line 37  signals = {} Line 37  signals = {}
37    
38  def signal_handler(signal, stack):  def signal_handler(signal, stack):
39    global keep_running    global keep_running
   global sigdict  
40    keep_running = False    keep_running = False
41    
42    
# Line 80  def load_config(options): Line 79  def load_config(options):
79    except IOError, e:    except IOError, e:
80      print "Got a '%s' trying to read %s" % (e.strerror, options.config)      print "Got a '%s' trying to read %s" % (e.strerror, options.config)
81      sys.exit(1)      sys.exit(1)
82      except ConfigParser.MissingSectionHeaderError, e:
83        print "Parser error: '%s'" % (e.message)
84        sys.exit(1)
85    if cf.has_option("DEFAULT", "wait"):    if cf.has_option("DEFAULT", "wait"):
86      defaultwait = cf.get("DEFAULT", "wait")      defaultwait = cf.get("DEFAULT", "wait")
87    else:    else:

Legend:
Removed from v.33  
changed lines
  Added in v.34

  ViewVC Help
Powered by ViewVC 1.1.22