main: move olsr_create_lock_file into its own file
authorFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 9 Nov 2015 14:39:32 +0000 (15:39 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 11 Nov 2015 16:09:26 +0000 (17:09 +0100)
commit6fa811140b4dae2af6c8d04e7666dd5a8f714f35
tree71c9eff764e38abb6f8f35b85913fb99c3ec7ec8
parent5d6a4ce069945b670067ac8a875a16793c2f43fd
main: move olsr_create_lock_file into its own file

And refactor it to not use olsr_exit.
And close the lock file on error paths.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/lock_file.c
src/lock_file.h
src/main.c