floating point exception status not inherited by exec

Andrew P. Mullhaupt amull at Morgan.COM
Sat Mar 24 14:35:44 AEST 1990


	On SCO UNIX System V/386 R3.2:

I need to preserve the state of the floating point exception mask
across an exec(). Experiments show that the exception mask and the
sticky bit status seems to be preserved across fork() (i.e. is
inherited by a child) but when exec is invoked, the exceptions may
change. This has ummm - 'unpleasant' consequences. Note that it
is not sufficient to work at the level of SIGFPE, but it is actually
required to specify the floating point exception mask and sticky bit
status to different values than the (otherwise sensible) defaults.

Any ideas?

Later,
Andrew Mullhaupt



More information about the Comp.unix.wizards mailing list