X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=test%2Fsrc%2Ffd.c;h=2dc12c6a7e290b7318bf87badfeb0dbcb6a375cd;hb=314db5bae8fbce6bf72f37096dc3a042696e8448;hp=4616f6fd1781f4538e8dd39962489dfeb6c879cd;hpb=c55a77db55ebf46a399f136eeb3a928b1e862772;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/test/src/fd.c b/test/src/fd.c index 4616f6fd1..2dc12c6a7 100644 --- a/test/src/fd.c +++ b/test/src/fd.c @@ -1,5 +1,3 @@ -/* $Cambridge: exim/test/src/fd.c,v 1.1 2006/02/06 16:24:05 ph10 Exp $ */ - /* A program to check on open file descriptors. There are some weird options for running it in Exim testing. If -q is given, make output suitable for queryprogram. If -f is given, copy the input as for a transport filter. If -s @@ -52,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);