From c4e7924f48e629319a8a0f74e73116319ba98423 Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Thu, 13 Mar 2014 18:37:02 +0100 Subject: ose: Prinout errno when to_erl read fails --- erts/etc/common/to_erl_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3