Subject: Re: Possible changes to POSIX abort()
To: Jason R Thorpe <thorpej@wasabisystems.com>
From: David Laight <david@l8s.co.uk>
List: tech-userlevel
Date: 07/15/2002 00:31:07
On Sun, Jul 14, 2002 at 12:48:10PM -0700, Jason R Thorpe wrote:
> On Sun, Jul 14, 2002 at 08:18:14PM +0100, David Laight wrote:
> 
>  > I thought the point about abort() was that you could call it from a
>  > signal handler and it would flush the stdio streams....
> 
> Flushing stdio streams is particularly dangerous to do in a signal
> handler, because doing so could require acquiring a mutex.

Absolutely - however abort could do it part way through its
processing (ie once all the other threads are dead/terminall suspended).
Maybe it could do it if the mutex is available?

	David

-- 
David Laight: david@l8s.co.uk