Revert "force line-buffered stdout if stdout is not a tty"

This reverts commit deb48ff48b.

Fixes: https://github.com/djpohly/dwl/issues/253
This commit is contained in:
Leonardo Hernández Hernández 2022-12-09 08:46:22 -06:00
parent 79b051f242
commit c60f651951
No known key found for this signature in database
GPG key ID: E538897EE11B9624

4
dwl.c
View file

@ -1803,6 +1803,7 @@ printstatus(void)
sel, urg); sel, urg);
printf("%s layout %s\n", m->wlr_output->name, m->lt[m->sellt]->symbol); printf("%s layout %s\n", m->wlr_output->name, m->lt[m->sellt]->symbol);
} }
fflush(stdout);
} }
void void
@ -2081,9 +2082,6 @@ setsel(struct wl_listener *listener, void *data)
void void
setup(void) setup(void)
{ {
/* Force line-buffered stdout */
setvbuf(stdout, NULL, _IOLBF, 0);
/* The Wayland display is managed by libwayland. It handles accepting /* The Wayland display is managed by libwayland. It handles accepting
* clients from the Unix socket, manging Wayland globals, and so on. */ * clients from the Unix socket, manging Wayland globals, and so on. */
dpy = wl_display_create(); dpy = wl_display_create();