nmeter: should die if stdout doesn't like him anymore
authorDenis Vlasenko <vda.linux@googlemail.com>
Mon, 26 Mar 2007 13:16:22 +0000 (13:16 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Mon, 26 Mar 2007 13:16:22 +0000 (13:16 -0000)
miscutils/nmeter.c

index efc78d76748a774a26db2acee15ac40b64abf1ae..0b499034e8a33e237eaed91c20306ea9e7715c40 100644 (file)
@@ -59,7 +59,7 @@ static void print_outbuf(void)
 {
        int sz = cur_outbuf - outbuf;
        if (sz > 0) {
-               write(1, outbuf, sz);
+               xwrite(1, outbuf, sz);
                cur_outbuf = outbuf;
        }
 }