Re: thread cancellation



On Wed, 2003-09-17 at 10:51, Ian McKellar wrote:
> On Wed, 2003-09-17 at 00:37, Ted Gould wrote:
> > On Mon, 2003-09-15 at 12:21, Colin Walters wrote:
> > > Has anyone else solved this problem in a different way?  Opinions?
> > 
> > It seems to me that a good way to solve this is by sending signals to
> > the threads. 
> 
> BEWARE BEWARE BEWARE
> 
> Traditional linuxthreads handle signals differently from nptl threads
> and posix threads, and in fact I don't believe you can send signals to
> threads in posix threads.
> 
> Signals are never the answer.

You have a problem. You decide to use signals to solve it. Now you have
two problems.

(Bad misquote)

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a Nobel prize-winning soccer-playing shaman fleeing from a secret 
government programme. She's a virginal green-skinned stripper from beyond the 
grave. They fight crime! 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]