Newsgroups: alt.irc,alt.irc.ircii,comp.os.linux,comp.os.linux.announce
From: ig25@fg20.rz.uni-karlsruhe.de (Thomas Koenig)
Subject: ircii for Linux hogs CPU, solution
Message-ID: <1993Mar15.215117.1016@tc.cornell.edu>
Date: Mon, 15 Mar 1993 21:51:17 GMT
Approved: linux-announce@tc.cornell.edu (Matt Welsh)

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, ig25@rz.uni-karlsruhe.de, ig25@dkauni2.bitnet
The joy of engineering is to find a straight line on a double
logarithmic diagram.

-- 
Send submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu
