Re: [CODE]: Strange error, what does it mean?

From: George (greerga@CIRCLEMUD.ORG)
Date: 11/05/98


On Thu, 5 Nov 1998, Christoffer Lundberg wrote:

>> >Select poll: Bad file descriptor

>if (select(maxdesc + 1, &input_set, &output_set, &exc_set, &null_time) < 0) {
>  perror("Select poll");
>  return;
>}
>
>This seems to be the spot where it closes down.

Right, if there is a bad fd in 'input_set' or 'output_set', then you'll get
that error. It can also be caused by a bad 'maxdesc' value that would
result from the same symptom. Are you removing all descriptor_data
structures or perhaps leaving some around after being closed?

--
George Greer, greerga@circlemud.org | Genius may have its limitations, but
http://mouse.van.ml.org/   (mostly) | stupidity is not thus handicapped.
http://www.van.ml.org/CircleMUD/    |                  -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST