Rename env var
This commit is contained in:
parent
962eefcc76
commit
bb311f5480
2 changed files with 4 additions and 2 deletions
|
|
@ -1106,7 +1106,9 @@ Your command line args: (1 2 3)
|
||||||
|
|
||||||
## Package babashka script as a AWS Lambda
|
## 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
|
## Thanks
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
(identical? :PIPE @pipe-state))
|
(identical? :PIPE @pipe-state))
|
||||||
|
|
||||||
(defn handle-pipe! []
|
(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/handle
|
||||||
(Signal. "PIPE")
|
(Signal. "PIPE")
|
||||||
(reify SignalHandler
|
(reify SignalHandler
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue