Closed dmig closed 10 years ago
Thanks for the patch, but I'm not applying that. First, lockf is a broken design, it interacts badly with fork (and Polipo uses fork, see local.c, forbidden.c) -- flock would be a better choice.
Second, I think it's overkill. If there's a stray lock file, something went wrong, so I'd expect the system administrator or the init script to do some checking.
Sorry for that.
Current pid file handling is not correct: it prevents daemon to start, if pid file exists, not checking whether daemon is actually running.
Here is a patch correcting this issue: