Skip to content

Commit 3221f94

Browse files
committed
Signal handling tweaks
1 parent a9bdc31 commit 3221f94

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/lambdaisland/launchpad.clj

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
(defonce processes (atom []))
1919

2020
(defn cleanup [sig]
21-
(println "Received" (str "SIG" sig))
21+
(println "[launchpad] Received" (str sig))
2222
(doseq [process @processes]
23-
(print "Killing" (.pid process))
23+
(print "[launchpad] Killing pid" (str (.pid process) "..."))
2424
(flush)
2525
(.destroy process)
26-
(println " ->" (.waitFor process))
26+
(println (str " exit=" (.waitFor process)))
2727
(flush))
2828
(System/exit 0))
2929

@@ -36,7 +36,6 @@
3636

3737
(set-signal-handler! "INT" cleanup)
3838
(set-signal-handler! "TERM" cleanup)
39-
(set-signal-handler! "KILL" cleanup)
4039

4140
(def cli-opts
4241
[["-h" "--help"]

0 commit comments

Comments
 (0)