Subject: Re: save/restore fpu for the signal handler call
To: None <port-i386@NetBSD.org>
From: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
List: port-i386
Date: 11/30/2005 21:36:06
On Wed, Nov 30, 2005 at 09:16:53PM +0100, Jaromir Dolecek wrote:
> On Wed, Nov 30, 2005 at 02:32:12PM -0500, der Mouse wrote:
> > No - only that FP arithmetic on values shared with non-signal use is
> > unpredicable.  But something like
> > 
> > 	printf("%.2f%% done\n",done*100.0/total);
> > 
> > inside a SIGINFO handler is totally reasonable.
> 
> Except that printf() isn't :) You cannot safely access
> stdio within signal handler.

Why not?