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

Function sigHandler

src/OSspecific/POSIX/signals/sigInt.C:38–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
37
38void Foam::sigInt::sigHandler(int)
39{
40 // Reset old handling
41 if (sigaction(SIGINT, &oldAction_, nullptr) < 0)
42 {
43 FatalErrorInFunction
44 << "Cannot reset SIGINT trapping"
45 << abort(FatalError);
46 }
47
48 // Update jobInfo file
49 jobInfo.signalEnd();
50
51 // Throw signal (to old handler)
52 raise(SIGINT);
53}
54
55
56// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

Callers

nothing calls this directly

Calls 2

sigactionClass · 0.70
abortFunction · 0.50

Tested by

no test coverage detected