preparations for signal handling in a dedicated thread