Subject: Re: save/restore fpu for the signal handler call
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Jaromir Dolecek <jdolecek@NetBSD.org>
List: port-i386
Date: 11/30/2005 21:16:53
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.

Jaromir 
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.cz/
-=- We can walk our road together if our goals are all the same;     -=-
-=- We can run alone and free if we pursue a different aim.          -=-