From: Tony Crisci Date: Tue, 7 Jan 2014 18:32:21 +0000 (-0500) Subject: i3bar Bugfix: don't show "EOF" status line error X-Git-Tag: 4.7.1~2^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=612d25c12cd1bd9ff4167e8530fe9a2c54a619e4;p=i3%2Fi3 i3bar Bugfix: don't show "EOF" status line error When the `status_command` sends EOF, it is terminated. Terminating this process prints an error message to the status line (hence, a race condition). This error message is always more useful than the former "EOF" status line error because it shows the exit code. --- diff --git a/i3bar/src/child.c b/i3bar/src/child.c index 1bd0d258..52e99b40 100644 --- a/i3bar/src/child.c +++ b/i3bar/src/child.c @@ -294,8 +294,6 @@ static unsigned char *get_buffer(ev_io *watcher, int *ret_buffer_len) { /* end of file, kill the watcher */ ELOG("stdin: received EOF\n"); cleanup(); - set_statusline_error("Received EOF from statusline process"); - draw_bars(false); *ret_buffer_len = -1; return NULL; }