Re: [LONG]Strange Loop

From: Benjamin Draper (satrycus@drachenburg.demon.co.uk)
Date: 05/20/00


 Okay, here goes:

 The logs in this piece of code:

>    log("null_time : tv_sec = %ld, tv_usec = %ld", null_time.tv_sec, null_time.tv_usec);
>
>    /* Poll (without blocking) for new input, output, and exceptions */
>    if (select(maxdesc + 1, &input_set, &output_set, &exc_set, &null_time) < 0) {
>      perror("SYSERR: Select poll");
>      return;
>    }
>    log("null_time : tv_sec = %ld, tv_usec = %ld", null_time.tv_sec, null_time.tv_usec);
>
>    // I've added this to set it back to 0
>    null_time.tv_sec = 0;
>    null_time.tv_usec = 0;

give me :

May 20 13:23:33 :: null_time : tv_sec = 0, tv_usec = 0
May 20 13:23:33 :: null_time : tv_sec = 21276209, tv_usec = 890000
May 20 13:23:33 :: null_time : tv_sec = 0, tv_usec = 0
May 20 13:23:33 :: null_time : tv_sec = 21276209, tv_usec = 790000
May 20 13:23:34 :: null_time : tv_sec = 0, tv_usec = 0
May 20 13:23:34 :: null_time : tv_sec = 21276209, tv_usec = 680000

 We're using Redhat 5.2, the kernel is 2.0.36.

 Thanks again, for all the input you guys have given me =)

-> Ben


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



This archive was generated by hypermail 2b30 : 04/10/01 PDT