X-Git-Url: https://git.exim.org/users/jgh/exim.git/blobdiff_plain/3634fc257bd0667daef14d72005cd87c735bbb24..594db4c93b1f04ddb422ad86a188a4fdcb19c570:/test/src/fd.c diff --git a/test/src/fd.c b/test/src/fd.c index 12a8dbc48..2dc12c6a7 100644 --- a/test/src/fd.c +++ b/test/src/fd.c @@ -50,7 +50,8 @@ if (filter) { int len; while ((len = read(0, buffer, sizeof(buffer))) > 0) - write(1, buffer, len); + if (write(1, buffer, len) < 0) + exit(1); } p += sprintf(p, "max fd = %d\n", (int)mac_maxfd);