Commit d522f721 authored by Dorian Krause's avatar Dorian Krause Committed by Morris Jette
Browse files

srun: Prevent shepard proc from calling spank_fini()

The spank_fini() function is registered with atexit() to be called
after termination of the srun main() function. The registered
functions are inherited by the forked shepard process and thus
spank_fini() is called twice.
This commit fixes this problem by introducing a wrapper function
_call_spank_fini() that is a no-op in the context of the shepard
process.
parent 11b129b9
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment