Subject: Re: save/restore fpu for the signal handler call
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Jason Thorpe <thorpej@shagadelic.org>
List: port-i386
Date: 12/06/2005 09:09:07
On Nov 30, 2005, at 11:32 AM, der Mouse wrote:

> 	printf("%.2f%% done\n",done*100.0/total);
>
> inside a SIGINFO handler is totally reasonable.

No, it's not.  printf() is not a signal-safe function.

-- thorpej