Commit 5c9f1dd5 authored by Regine Gaudin's avatar Regine Gaudin Committed by Tim Wickberg
Browse files

Prevent multiple calls to pthread_atfork() after re-init of config regex.

keyvalue_initialized is reset on 'scontrol reconfigure' and other
cases, which can lead to additional atfork handlers being registered.

These can eventually lead to a segfault if an excessive number of
handlers have been re-registered. Set a separate boolean to protect
against this. Clear that boolean as part of the atfork handler.

Bug 4628.
parent 470b5444
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