i3bar Bugfix: don't show "EOF" status line error
Patch status: merged
Patch by Tony Crisci
Long description:
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.
To apply this patch, use:
curl http://cr.i3wm.org/patch/370/raw.patch | git am
b/i3bar/src/child.c
| 17 |
@@ -288,8 +288,6 @@ static unsigned char *get_buffer(ev_io *watcher, int *ret_buffer_len) {
|
| 18 |
/* end of file, kill the watcher */ |
| 19 |
ELOG("stdin: received EOF\n");
|
| 20 |
cleanup(); |
| 21 |
- set_statusline_error("Received EOF from statusline process");
|
| 22 |
- draw_bars(false); |
| 23 |
*ret_buffer_len = -1; |
| 24 |
return NULL; |
| 25 |
} |