diff --git a/src/common/slurm_protocol_defs.h b/src/common/slurm_protocol_defs.h index c8a4f257678138429e2971fb801ac817889ae816..95a7770ed669860ec9c796060b9e4e8ce08e5d0c 100644 --- a/src/common/slurm_protocol_defs.h +++ b/src/common/slurm_protocol_defs.h @@ -1330,9 +1330,11 @@ extern char *rpc_num2string(uint16_t opcode); int rc; \ while (remaining > 0) { \ rc = read(fd, ptr, remaining); \ - if ((rc == 0) && (remaining == size)) \ + if ((rc == 0) && (remaining == size)) { \ + debug("%s:%d: %s: safe_read EOF", \ + __FILE__, __LINE__, __CURRENT_FUNC__); \ goto rwfail; \ - else if (rc == 0) { \ + } else if (rc == 0) { \ debug("%s:%d: %s: safe_read (%d of %d) EOF", \ __FILE__, __LINE__, __CURRENT_FUNC__, \ remaining, (int)size); \