Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for getFdName() on Darwin #17

Merged
merged 1 commit into from
Nov 17, 2016

Conversation

abligh
Copy link
Contributor

@abligh abligh commented Nov 11, 2016

This patch adds support for getFdName() on Darwin using fcntl(F_GETPATH), as Darwin does not have /proc

Without this, deletion of the PID file was failing, as it could not retrieve its name.

This means Darwin passes one more test than it did.

I believe this will help fix #12

Add support for getFdName() on Darwin using fcntl(F_GETPATH), as Darwin does not have /proc

Signed-off-by: Alex Bligh <[email protected]>
@abligh
Copy link
Contributor Author

abligh commented Nov 11, 2016

I can confirm that after

brew tap discoteq/discoteq
brew install flock

(to install a flock binary), all tests now pass on Darwin.

@sevlyar
Copy link
Owner

sevlyar commented Nov 17, 2016

Thank you very much!

@sevlyar sevlyar merged commit 8577c7d into sevlyar:master Nov 17, 2016
@abligh abligh deleted the darwin-get-fd-name branch November 17, 2016 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

go-daemon does not remove the pidfile on exit
2 participants