From: Matthias A. <mat...@gm...> - 2006-06-28 15:08:59
|
On Wed, 28 Jun 2006, Uli Zappe wrote: > >"you'll have to" or "you may have to" sounds more polite than "you > >must" (no offense taken, don't worry). > > Well, the force of the laws of logic isn't polite ... ;-) (This was > not meant to be a social "must" but rather a logical one, as I indeed > see no other programming techniques to deal with that issue.) Well, some options not yet mentioned are (without regard to their usability): - dedicated resource tracking with a specific list - store the address list in one of the per-server or per-poll structures, rather than globally - avoid the crude longjmp() (which should've been siglongjmp anyways) but rely on EINTR or similar. - give up on SIGALRM and use non-blocking I/O and select() instead. I haven't yet checked which way I'll go though. -- Matthias Andree |