Rename env var

This commit is contained in:
Michiel Borkent 2020-03-21 23:15:02 +01:00
parent 962eefcc76
commit bb311f5480
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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