Project

General

Profile

Bug #29

100% CPU usage due to listen()

Added by ChalamiuS about 13 years ago. Updated about 13 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
-
Target version:
-
Start date:
February 06, 2011
Due date:
% Done:

100%

Estimated time:

Description

This should simply be a matter of adding a sleep to listen()

#1

Updated by ChalamiuS about 13 years ago

  • Estimated time deleted (1.00 h)

Issue seems to appear when we're using a side-channels (seems to affect file descriptors)

Either way, unless we figure out why select() is returning instantly a possible fix still is a sleep in the listen function.

#2

Updated by AltaDeSaxa about 13 years ago

I am unable to reproduce this on my Linux machine. Perhaps your local copy has set the main IRC connection to non-blocking? Are you running this on Windows?

#3

Updated by ChalamiuS about 13 years ago

AltaDeSaxa wrote:

Are you running this on Windows?

No, I'm running it on Linux. Perhaps it has something to do with where I put it (/tmp)...
I'll experiment and see what could be causing it

#4

Updated by ChalamiuS about 13 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

K, note to self: files do not like select(), make sure you use fifo!

Also available in: Atom PDF