aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates/extended_bin
diff options
context:
space:
mode:
authorBen Murphy <[email protected]>2016-08-09 15:45:25 +0100
committerLuis Rascao <[email protected]>2016-10-27 19:22:35 +0100
commit7231ee8eb29da0946792aef6ac155f9e31fb37ed (patch)
treee5813437b0faf393a337aa5444b43b0d3c4be6ff /priv/templates/extended_bin
parentcfd99cfc9e99b8a90a92459794bd6dabfd649d9b (diff)
downloadrelx-7231ee8eb29da0946792aef6ac155f9e31fb37ed.tar.gz
relx-7231ee8eb29da0946792aef6ac155f9e31fb37ed.tar.bz2
relx-7231ee8eb29da0946792aef6ac155f9e31fb37ed.zip
disable ctrl-s block node feature
(see: http://erlang.org/pipermail/erlang-patches/2010-March/000883.html)
Diffstat (limited to 'priv/templates/extended_bin')
-rwxr-xr-xpriv/templates/extended_bin11
1 files changed, 11 insertions, 0 deletions
diff --git a/priv/templates/extended_bin b/priv/templates/extended_bin
index ddecc8b..2630bbf 100755
--- a/priv/templates/extended_bin
+++ b/priv/templates/extended_bin
@@ -2,6 +2,17 @@
set -e
+# http://erlang.org/doc/man/run_erl.html
+# If defined, disables input and output flow control for the pty
+# opend by run_erl. Useful if you want to remove any risk of accidentally
+# blocking the flow control by using Ctrl-S (instead of Ctrl-D to detach),
+# which can result in blocking of the entire Beam process, and in the case
+# of running heart as supervisor even the heart process becomes blocked
+# when writing log message to terminal, leaving the heart process unable
+# to do its work.
+RUN_ERL_DISABLE_FLOWCNTRL=${RUN_ERL_DISABLE_FLOWCNTRL:-true}
+export $RUN_ERL_DISABLE_FLOWCNTRL
+
SCRIPT=$(readlink $0 || true)
if [ -z $SCRIPT ]; then
SCRIPT=$0