X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/3634fc257bd0667daef14d72005cd87c735bbb24..d16931c81f3e500fa6eafe5ec1c5d8e7db63e65a:/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);