[Rivet-svn] r1678 - trunk/bin

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Mon Jul 13 20:58:47 BST 2009


Author: buckley
Date: Mon Jul 13 20:58:42 2009
New Revision: 1678

Log:
Fixing signal handling (the RECVD_KILL_SIGNAL variable needed to e declared as global in the handler function)

Modified:
   trunk/bin/rivet

Modified: trunk/bin/rivet
==============================================================================
--- trunk/bin/rivet	Mon Jul 13 16:34:08 2009	(r1677)
+++ trunk/bin/rivet	Mon Jul 13 20:58:42 2009	(r1678)
@@ -53,12 +53,10 @@
   agile-runmc <genname> -n 100k | %prog [options]
 
 ENVIRONMENT:
- * RIVET_ANALYSIS_PATH
- * RIVET_REF_PATH
-
-TODO:
- * Incorporate an optional AGILe mode (just reading param 
-   files - no proliferation of switches)
+ * RIVET_ANALYSIS_PATH: list of paths to be searched for plugin 
+     analysis libraries at runtime
+ * RIVET_REF_PATH: list of paths to be searched for reference data
+     files (may be replaced with RIVET_DATA_PATH in a future release)
 """
 
 
@@ -169,6 +167,7 @@
 RECVD_KILL_SIGNAL = None
 def handleKillSignal(signum, frame):
     "Declare us as having been signalled, and return to default handling behaviour"
+    global RECVD_KILL_SIGNAL
     logging.critical("Signal handler called with signal " + str(signum))
     RECVD_KILL_SIGNAL = signum
     signal.signal(signum, signal.SIG_DFL)


More information about the Rivet-svn mailing list