aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2014-03-13 18:37:02 +0100
committerLukas Larsson <[email protected]>2014-03-26 15:18:58 +0100
commitc4e7924f48e629319a8a0f74e73116319ba98423 (patch)
tree9c3f169144813ff547dadbdcb909c5acc543bfda
parentff3ac97b2fedf6621de5f3442a3b81f29f08daae (diff)
downloadotp-c4e7924f48e629319a8a0f74e73116319ba98423.tar.gz
otp-c4e7924f48e629319a8a0f74e73116319ba98423.tar.bz2
otp-c4e7924f48e629319a8a0f74e73116319ba98423.zip
ose: Prinout errno when to_erl read fails
-rw-r--r--erts/etc/common/to_erl_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/etc/common/to_erl_common.c b/erts/etc/common/to_erl_common.c
index a49be44b6c..ab706fffe0 100644
--- a/erts/etc/common/to_erl_common.c
+++ b/erts/etc/common/to_erl_common.c
@@ -126,7 +126,8 @@ static int version_handshake(char* buf, int len, int wfd);
#define READ_AIO(REQ,FD,SIZE,BUFF) \
SET_AIO(REQ,FD,SIZE,BUFF); \
if (aio_read(&(REQ)) != 0) \
- fprintf(stderr,"aio_read of child_read_req(%d) failed\n",FD)
+ fprintf(stderr,"aio_read of child_read_req(%d) failed" \
+ "with error %d\n",FD,errno)
union SIGNAL {
SIGSELECT signo;