Docs: Remove GNUmake idioms from Makefile, give power to "mv"
[exim.git] / test / src / fd.c
index 12a8dbc487a3aa10e9d3d820dbc55b29b679a7b8..2dc12c6a7e290b7318bf87badfeb0dbcb6a375cd 100644 (file)
@@ -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);