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

From: Christoffer Lundberg (avatar@ORION.BODEN.SE)
Date: 11/05/98


On Wed, 4 Nov 1998, George wrote:

> On Wed, 4 Nov 1998, Christoffer Lundberg wrote:
>
> >This is logged when someone logs off our MUD.
> >
> >Wed Nov  4 23:31:09 :: Xor has quit the game.
> >Wed Nov  4 23:31:18 :: Losing player: Xor.
> >Select poll: Bad file descriptor
> >Wed Nov  4 23:31:18 :: Closing all sockets.
>
> Sounds like your player-descriptor is hanging around in memory longer than
> it should. Then it'll be counted in the file-descriptors-to-check in the
> select()  of game_loop() but it is found to be an invalid file number.
>
> --
> 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

Hmm, that sounds kinda complicated. I read through the comm.c where it
performs this crash. But I cannot figure out the following line:

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.


     +------------------------------------------------------------+
     | 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