HomeClusterLabs Projects
Diffusion LibQB aec4cde4312a

Fix check_ipc tests so they exit correctly

Description

Fix check_ipc tests so they exit correctly

On some platforms the check_ipc test can fail due to SIGTERM
being delivered to to exiting server process. There is a race
condition between the server main loop quitting and the
signal being delivered.

This patch closes that race loophole in two places, firstly
it makes SIGTERM/SIGSTOP exit immediately rather than just signalling
the mainloop, secondly it calls exit() rather than return when the server
mainloop completes to that the client code does not start executing!

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>

Details

Provenance
chrissie-cAuthored on Sep 11 2015, 4:16 AM
Parents
rQ4d817cc7e0b6: Somme minor fixes to the check script
Branches
Unknown
Tags
Unknown

Event Timeline