From 64028960de43a24d59ad95f0dee86153f6803951 Mon Sep 17 00:00:00 2001 From: Andre Date: Thu, 4 May 2006 20:08:59 +0200 Subject: [PATCH] audiod: reset max_fileno at each run. Kill some noisy debug messages also. --- audiod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audiod.c b/audiod.c index 61711dc3..a78ccd68 100644 --- a/audiod.c +++ b/audiod.c @@ -809,7 +809,7 @@ static void check_stat_line(char *line) long unsigned sec, usec; char *tmp; - PARA_INFO_LOG("line: %s\n", line); +// PARA_INFO_LOG("line: %s\n", line); if (!line) return; itemnum = stat_line_valid(line); @@ -1561,6 +1561,7 @@ static void __noreturn audiod_mainloop(void) repeat: FD_ZERO(&wfds); FD_ZERO(&rfds); + max_fileno = -1; /* always check signal pipe and the local socket */ para_fd_set(signal_pipe, &rfds, &max_fileno); para_fd_set(audiod_socket, &rfds, &max_fileno); @@ -1643,7 +1644,6 @@ int __noreturn main(int argc, char *argv[]) char *cf; int i; - fprintf(stderr, "argc: %d\n", argc); valid_fd_012(); hostname = para_hostname(); cmdline_parser(argc, argv, &conf); -- 2.39.5