X-Git-Url: https://git.exim.org/users/heiko/exim.git/blobdiff_plain/3634fc257bd0667daef14d72005cd87c735bbb24..16be7f11f59d78ce11f98cd235f6a60d9394d705:/test/src/fd.c?ds=sidebyside 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);