From bb311f5480e9e7fe34be2de6ce70832872ba6862 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Sat, 21 Mar 2020 23:15:02 +0100 Subject: [PATCH] Rename env var --- README.md | 4 +++- src/babashka/impl/pipe_signal_handler.clj | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 14968b21..bc9ec709 100644 --- a/README.md +++ b/README.md @@ -1106,7 +1106,9 @@ Your command line args: (1 2 3) ## Package babashka script as a AWS Lambda -AWS Lambda runtime doesn't support signals, therefore babashka has to disable handling of the SIGPIPE. This can be done by setting `BABASHKA_DISABLE_PIPE_HANDLER` to `true`. +AWS Lambda runtime doesn't support signals, therefore babashka has to disable +handling of the SIGPIPE. This can be done by setting +`BABASHKA_DISABLE_PIPE_SIGNAL_HANDLER` to `true`. ## Thanks diff --git a/src/babashka/impl/pipe_signal_handler.clj b/src/babashka/impl/pipe_signal_handler.clj index c46a10e1..e1bf83b2 100644 --- a/src/babashka/impl/pipe_signal_handler.clj +++ b/src/babashka/impl/pipe_signal_handler.clj @@ -9,7 +9,7 @@ (identical? :PIPE @pipe-state)) (defn handle-pipe! [] - (when-not (= "true" (System/getenv "BABASHKA_DISABLE_PIPE_HANDLER")) + (when-not (= "true" (System/getenv "BABASHKA_DISABLE_PIPE_SIGNAL_HANDLER")) (Signal/handle (Signal. "PIPE") (reify SignalHandler