terminate cdrrewrited immediately on signals
authorivan <ivan>
Sun, 1 May 2011 19:07:29 +0000 (19:07 +0000)
committerivan <ivan>
Sun, 1 May 2011 19:07:29 +0000 (19:07 +0000)
FS/bin/freeside-cdrrewrited

index 3382598..694f980 100644 (file)
@@ -118,6 +118,8 @@ while (1) {
       sleep 30; #i dunno, wait and see if the database comes back?
     }
 
+    last if sigterm() || sigint();
+
   }
 
   myexit() if sigterm() || sigint();