Messages in this thread |  | | Date | Mon, 2 Dec 1996 09:33:04 +0100 (MET) | From | "Peter.Vaneynde" <> | Subject | Signals and the FPU control word: documented behavior? |
| |
Hello world,
In looking for a bug in CMUCL I found strange behavior in the interactions between signals and the fpu control word.
In the demonstration (typescript) you can see that on 2.0.26 the control word is reset in the signal handler. Shouldn't we document, or change the behavior?
Groetjes, Peter
-- It's logic Jim, but not as we know it. finger s950045@hipe.uia.ac.be for pgp public key. Version: 3.12 GS/CS/L/C d->? s+:++>+@ a-- C++(+++)>$ ULOS++>++++$ P+>++++ L+++>++++ E>++ W+(--) U++>+++ o>+ K? w--- O>+@ M-? V? PS++ PE(--) Y+ PGP+>++ t++>+++ 5++ X++>+++ R tv b+++>++++ DI++ D++@ G+>++ e++>++++ h!>+ r-@ y>+++**@ Script started on Mon Dec 2 07:22:13 1996 ~/fakeroot/usr/src/cmucl/test$ ./t main: 370 handler: 37f main: 370
~/fakeroot/usr/src/cmucl/test$ exit exit
Script done on Mon Dec 2 07:22:20 1996 #include <stdio.h> #include <math.h> #include <signal.h> #include <i386/fpu_control.h>
void handler(void) { printf("handler: %x\n", __getfpucw()); }
int main(int argc,char *argv[]) { __setfpucw(0x1370); signal(SIGINT,&handler); for(;;) { sleep(2); printf("main: %x\n",__getfpucw()); } }
|  |