Skip to content
Snippets Groups Projects
Commit 32a42931 authored by Colin Walters's avatar Colin Walters
Browse files

lockfile: Use an `initialized` member rather than explicit init

This makes us more friendly to being embedded in a GObject or
the like that's fully zero-initialized, rather than relying on the special
`-1` value for the fd.

Calls to `glnx_release_lock_file()` become idempotent, so it's easy to call it
unconditionally in an object finalizer.
parent 292cfc80
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment