martingallagher/gawp

log.Fatal cause lock file not deleted

xmxiaoq opened this issue · 1 comments

log.Fatal exit app, the defer statement has no effect, cause lock file leaked. Later acquire lock will aways fail.
Use log.Print following a return statement, or release the lock before every log.Fatal statement?

Great spot, I'll fix this Monday evening and provide you with a PR if that's OK with you?