Commit 824bf9c4 authored by Pavan Balaji's avatar Pavan Balaji
Browse files

[svn-r4101] The size of the buffer passed to read was more than what the buffer

could hold. So, we were "losing" some data. This should fix ticket
#468.
parent adff06a1
......@@ -32,7 +32,7 @@ HYD_Status HYD_Proxy_listen_cb(int fd, HYD_Event_t events)
HYDU_ERR_POP(status, "unable to register fd\n");
}
else { /* We got a command from mpiexec */
count = read(fd, &cmd, HYD_TMPBUF_SIZE);
count = read(fd, &cmd, sizeof(enum HYD_Proxy_cmds));
if (count < 0) {
HYDU_ERR_SETANDJUMP2(status, HYD_SOCK_ERROR, "read error on %d (%s)\n",
fd, HYDU_String_error(errno));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment