Displaying 2 results from an estimated 2 matches for "fd_write_lin".
Did you mean:
fd_write_line
2004 Aug 06
3
99% cpu usage help
I think the problem is that your icecast is wrong configured.
If it has an configuratrion error that dows not shut it down at startup,
it takes 99,9% cpu usage (thats my problem with, for example, a wrong path
to configuration file at startup, or something like this).
Greets,
Stefan
----- Original Message -----
From: "Tim Hart" <heytph@yahoo.com>
To: <icecast@xiph.org>
2004 Aug 06
0
99% cpu usage help
...; thread_alive (mt)) {
/* con->sock will be STDOUT, so special case reading
to use STDIN */
if (fd_read_line_nb(fileno(stdin), line, BUFSIZE))
handle_admin_command (con, line, ice_strlen
(line));
else
fd_write_line (con->sock, "You can run, but
you can't hide!");
}
I added a system ("sleep 5"); before the fd_write_line... function
call and it brought my CPU percentage down to nothing.
Keep in mind that I AM NOT A C PROGRAMMER. I don't know what this
function does an...