Merge branch 'fix-i3bar-input'

next
Michael Stapelberg 2011-08-25 18:50:58 +02:00
commit b7a3d8505b
1 changed files with 6 additions and 3 deletions

View File

@ -40,6 +40,8 @@ void cleanup() {
ev_io_stop(main_loop, stdin_io);
FREE(stdin_io);
FREE(statusline_buffer);
/* statusline pointed to memory within statusline_buffer */
statusline = NULL;
}
if (child_sig != NULL) {
@ -78,9 +80,10 @@ void stdin_io_cb(struct ev_loop *loop, ev_io *watcher, int revents) {
}
/* end of file, kill the watcher */
DLOG("stdin: EOF\n");
ELOG("stdin: received EOF\n");
cleanup();
break;
draw_bars();
return;
}
rec += n;
@ -110,7 +113,7 @@ void stdin_io_cb(struct ev_loop *loop, ev_io *watcher, int revents) {
*
*/
void child_sig_cb(struct ev_loop *loop, ev_child *watcher, int revents) {
DLOG("Child (pid: %d) unexpectedly exited with status %d\n",
ELOG("Child (pid: %d) unexpectedly exited with status %d\n",
child_pid,
watcher->rstatus);
cleanup();