Subject: ircii for Linux hogs CPU, solution
From: [email-masked] (Thomas Koenig)
Date: Mon, 15 Mar 1993 21:51:17 GMT
Newsgroups: alt.irc,alt.irc.ircii,comp.os.linux,comp.os.linux.announce

A quick word of warning for those who do want to use the ircii
client on Linux:  If you compile it "out of the box", you'll get
a CPU hog.

The reason for this is that Linux currently changes the value the fourth
parameter of the select(2) call points to to reflect actually elapsed
time.  This means that ircii will go into a tight loop of select()
calls, which is an excellent CPU hog.

The solution is straightforward:  Save the value the parameter which the
timeout pointer points to (if that pointer isn't equal to NULL), and
restore it after the call to select().  This needs to be done in the
function new_select().

No context diffs available right here, unfortunately...
-- 
Thomas Koenig, [email-masked], [email-masked]
The joy of engineering is to find a straight line on a double
logarithmic diagram.

-- 
Send submissions for comp.os.linux.announce to: [email-masked]