generic atfork callback