Xref: utzoo comp.unix.i386:3709 comp.unix.xenix:10743 comp.unix.wizards:21171 Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!mstan!amull From: amull@Morgan.COM (Andrew P. Mullhaupt) Newsgroups: comp.unix.i386,comp.unix.xenix,comp.unix.wizards Subject: Re: floating point exception status not inherited by exec Message-ID: <795@s7.Morgan.COM> Date: 24 Mar 90 04:35:44 GMT Reply-To: amull@Morgan.COM (Andrew P. Mullhaupt) Organization: Morgan Stanley and Co., NY, NY Lines: 16 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