[prev in list] [next in list] [prev in thread] [next in thread] 

List:       l7-filter-developers
Subject:    Re: [l7-filter-developers] A fix for the sudden exit problem
From:       Matthew Strait <quadong () users ! sourceforge ! net>
Date:       2007-05-04 19:39:44
Message-ID: Pine.LNX.4.64.0705041436120.16466 () localhost
[Download RAW message or body]

> sleep(0xffffffffff);
>
> Apparently, the architecture on which I'm working (i486-linux) doesn't 
> like this, so it just exits.
>
> I replaced it with
>
> while(1){
> 	sleep(3600);
> }

Ack, I had forgotten about this kludge.  I believe that the correct thing 
to do is to replace the call to sleep with:

pthread_join(connection_tracking_thread, NULL);
pthread_join(queue_tracking_thread, NULL);

Although your solution should work just fine too.

> I'll post a patch early next week when I'm back in the lab.

It's simple enough that you don't really need to bother.

-Matthew

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
L7-filter-developers mailing list
L7-filter-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/l7-filter-developers
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic