From f62c6fa1cae0f944243c57b0a776c29eb0c61f18 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 26 Mar 2007 13:16:22 +0000 Subject: nmeter: should die if stdout doesn't like him anymore --- miscutils/nmeter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'miscutils') diff --git a/miscutils/nmeter.c b/miscutils/nmeter.c index efc78d767..0b499034e 100644 --- a/miscutils/nmeter.c +++ b/miscutils/nmeter.c @@ -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; } } -- cgit v1.2.3