aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2014-03-17 16:43:20 +0100
committerLukas Larsson <[email protected]>2014-03-26 15:18:57 +0100
commit675e046c886f358fdd80d9b818282cf714b577d2 (patch)
tree9374cdba60742aa8ef8f3670595766b60fd964ac
parentf6570cf6201bf6476d903def9b04fe9c33f13a3d (diff)
downloadotp-675e046c886f358fdd80d9b818282cf714b577d2.tar.gz
otp-675e046c886f358fdd80d9b818282cf714b577d2.tar.bz2
otp-675e046c886f358fdd80d9b818282cf714b577d2.zip
ose: Initiate stdin/stdout/stderr
Needed to get std io to work in some OSE systems where stdio is not opened when the program starts.
-rw-r--r--erts/emulator/sys/ose/erl_main.c2
-rw-r--r--erts/etc/ose/run_erl_main.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/erts/emulator/sys/ose/erl_main.c b/erts/emulator/sys/ose/erl_main.c
index 03119c3fec..23a9bc93a4 100644
--- a/erts/emulator/sys/ose/erl_main.c
+++ b/erts/emulator/sys/ose/erl_main.c
@@ -30,6 +30,8 @@
int
main(int argc, char **argv) {
+ (void)stdin;(void)stdout;(void)stderr;
+
/* When starting using pm_create -c ARGV="-- -root ..", argv[0] is the first
part of ARGV and not the name of the executable. So we shuffle some
pointers here to make erl_start happy. */
diff --git a/erts/etc/ose/run_erl_main.c b/erts/etc/ose/run_erl_main.c
index d396ebe93b..2d92924ff2 100644
--- a/erts/etc/ose/run_erl_main.c
+++ b/erts/etc/ose/run_erl_main.c
@@ -45,6 +45,8 @@ int main(int argc, char **argv)
char run_erl_usage[320],
to_erl_usage[120];
+ (void)stdin;(void)stdout;(void)stderr;
+
sprintf(run_erl_usage,RUN_ERL_USAGE,"run_erl [-daemon] [-block blockname]");
sprintf(to_erl_usage,TO_ERL_USAGE,"pipename");