aboutsummaryrefslogtreecommitdiffstats
path: root/erts/preloaded
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-07-05 15:51:23 +0200
committerSverker Eriksson <[email protected]>2016-07-05 15:51:23 +0200
commitacf0330b0f5b1f4b8fc411cac45f57348b459525 (patch)
treeaa70293e76996fad8f2c74a194dac731f61b1e4f /erts/preloaded
parente77c49f0e80740531405a49494fe5431326a0ba7 (diff)
downloadotp-acf0330b0f5b1f4b8fc411cac45f57348b459525.tar.gz
otp-acf0330b0f5b1f4b8fc411cac45f57348b459525.tar.bz2
otp-acf0330b0f5b1f4b8fc411cac45f57348b459525.zip
run_erl: Fix failing run_erl invokation on OpenBSD
Symptom: run_erl does exit(0) and child program (erl) does not seem to start. Running run_erl again however brings the previous child program to life. Problem: A race causing run_erl to read 0 from master pty and exit because the child has not yet opened its corresponding slave pty. Solution: Use the non standard openpty() function instead that does not expose this race as the slave fd is opened in the parent. Question: Is there a race free way to do this with posix_openpt on OpenBSD?
Diffstat (limited to 'erts/preloaded')
0 files changed, 0 insertions, 0 deletions