How about saving to an unlinked tmp file that is not marked for close-on-exec, where the state can be serialized/unserialized across the exec?
How about saving to an unlinked tmp file that is not marked for unserialized across the
close-on-exec, where the state can be serialized/
exec?