]> git.tue.mpg.de Git - paraslash.git/commitdiff
audiod: reset max_fileno at each run.
authorAndre <maan@p133.(none)>
Thu, 4 May 2006 18:08:59 +0000 (20:08 +0200)
committerAndre <maan@p133.(none)>
Thu, 4 May 2006 18:08:59 +0000 (20:08 +0200)
Kill some noisy debug messages also.

audiod.c

index 61711dc3f5591d9396ebe62496871404834dea47..a78ccd68a8e4dddd912f7f6ee6933ad092e29ea1 100644 (file)
--- 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);