From 0d591f0fa30d173afab05fe70ddc1f20f425d742 Mon Sep 17 00:00:00 2001
From: Kipp Cannon <kipp.cannon@ligo.org>
Date: Thu, 27 Mar 2014 13:13:01 -0500
Subject: [PATCH] gstlal_inspiral:  edit some comments.

---
 gstlal-inspiral/bin/gstlal_inspiral | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/gstlal-inspiral/bin/gstlal_inspiral b/gstlal-inspiral/bin/gstlal_inspiral
index 7af1e31fa2..c94cb2989d 100755
--- a/gstlal-inspiral/bin/gstlal_inspiral
+++ b/gstlal-inspiral/bin/gstlal_inspiral
@@ -514,14 +514,15 @@ for svd_bank, output_filename, likelihood_file in zip(svd_banks, options.output,
 		# start http interface and dump URL list
 		#
 
-		# FIXME: don't hard-code port, don't use in this program right now since more than one job runs per machine
+		# FIXME: don't hard-code port, don't use in this program
+		# right now since more than one job runs per machine
 		httpservers = httpinterface.HTTPServers(16953, verbose = options.verbose)
 		open("%s_registry.txt" % os.environ['GSTLAL_LL_JOB'], "w").writelines(register())
 
 		#
-		# setup sigint handler to shutdown pipeline.  this is how the program stops
-		# gracefully, it is the only way to stop it.  Otherwise it runs forever
-		# man.
+		# setup sigint handler to shutdown pipeline.  this is how
+		# the program stops gracefully, it is the only way to stop
+		# it.  Otherwise it runs forever man.
 		#
 
 		signal.signal(signal.SIGINT, OneTimeSignalHandler(pipeline))
@@ -593,8 +594,11 @@ if options.local_frame_caching:
 		del detectors.local_cache_list
 
 #
-# done
+# done.  online pipeline always ends with an error code so that dagman does
+# not mark the job "done" and the job will be restarted when the dag is
+# restarted.
 #
 
+
 if options.data_source in ("lvshm", "framexmit"):
-	sys.exit(1) # online pipeline always ends with an error code
+	sys.exit(1)
-- 
GitLab