From 9b1d5378d9ef3d6e189e4c06121370fb5b285854 Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Sat, 5 Oct 2024 00:06:39 -0500 Subject: enable -Ofast optimizations and exit when recieve null stdin which fixes the bugs in awesomewm and causes it to exit after a refresh --- pavolctld.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'pavolctld.c') diff --git a/pavolctld.c b/pavolctld.c index 2e6d13d..a4e108b 100644 --- a/pavolctld.c +++ b/pavolctld.c @@ -138,10 +138,8 @@ int main() { // main loop pa_threaded_mainloop_start(mainloop); - while(1) { - if (fgets(stdin_buffer, sizeof(stdin_buffer), stdin) != NULL) - handle_command(context, stdin_buffer); - } + while (fgets(stdin_buffer, sizeof(stdin_buffer), stdin) != NULL) + handle_command(context, stdin_buffer); // clean up pa_context_disconnect(context); -- cgit v1.2.3