MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / sigHandler

Function sigHandler

src/OSspecific/POSIX/signals/sigFpe.C:90–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88
89#ifdef LINUX_GNUC
90void Foam::sigFpe::sigHandler(int)
91{
92 // Reset old handling
93 if (sigaction(SIGFPE, &oldAction_, nullptr) < 0)
94 {
95 FatalErrorInFunction
96 << "Cannot reset SIGFPE trapping"
97 << abort(FatalError);
98 }
99
100 // Update jobInfo file
101 jobInfo.signalEnd();
102
103 error::printStack(Perr);
104
105 // Throw signal (to old handler)
106 raise(SIGFPE);
107}
108#endif
109
110

Callers

nothing calls this directly

Calls 3

sigactionClass · 0.70
abortFunction · 0.50
printStackFunction · 0.50

Tested by

no test coverage detected