HomeClusterLabs Projects
Diffusion Booth 16645db35c56

main: Delete lockfile when signal arrive too early

Description

main: Delete lockfile when signal arrive too early

Previously, if signal was sent in between lock file creation and
signal handler registration, booth daemon exited without deleting lock
file.

I was able to reproduce this behaviour very rarely (and only
on s390 architecture) when running test suite. Reliable reproducer was
to put sleep call after call of create_lockfile and before call of
signal function,

Proposed solution is to move signal and atexit call before
create_lockfile.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>

Details

Provenance
jfriesseAuthored on May 25 2020, 4:50 AM
Parents
rB385cc25a3769: Merge pull request #91 from jfriesse/accept-long-config-lock-fnames
Branches
Unknown
Tags
Unknown

Event Timeline