Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
git-hooks/ | H | 03-Mar-2017 | - | |||
.gitignore | H A D | 03-Mar-2017 | 291 | |||
.gitmodules | H A D | 03-Mar-2017 | 89 | |||
.travis.yml | H A D | 03-Mar-2017 | 93 | |||
LICENSE | H A D | 03-Mar-2017 | 1 KiB | |||
README.md | H A D | 03-Mar-2017 | 1.3 KiB | |||
appveyor.yml | H A D | 03-Mar-2017 | 194 | |||
lockfile.go | H A D | 03-Mar-2017 | 5.3 KiB | |||
lockfile_test.go | H A D | 03-Mar-2017 | 5.9 KiB | |||
lockfile_unix.go | H A D | 03-Mar-2017 | 331 | |||
lockfile_windows.go | H A D | 03-Mar-2017 | 594 |
README.md
1lockfile 2========= 3Handle locking via pid files. 4 5*Attention:* This is a fork of [Ingo Oeser's amazing work](https://github.com/nightlyone/lockfile) 6whose behavior differs a bit. While the original package allows a process to 7obtain the same lock twice, this fork forbids this behavior. 8 9[![Build Status Unix][1]][2] 10[![Build status Windows][3]][4] 11 12[1]: https://secure.travis-ci.org/Acconut/lockfile.png 13[2]: https://travis-ci.org/Acconut/lockfile 14[3]: https://ci.appveyor.com/api/projects/status/bwy487h8cgue6up5?svg=true 15[4]: https://ci.appveyor.com/project/Acconut/lockfile/branch/master 16 17 18 19install 20------- 21Install [Go 1][5], either [from source][6] or [with a prepackaged binary][7]. 22For Windows suport, Go 1.4 or newer is required. 23 24Then run 25 26 go get gopkg.in/Acconut/lockfile.v1 27 28[5]: http://golang.org 29[6]: http://golang.org/doc/install/source 30[7]: http://golang.org/doc/install 31 32LICENSE 33------- 34BSD 35 36documentation 37------------- 38[package documentation at godoc.org](http://godoc.org/gopkg.in/Acconut/lockfile.v1) 39 40contributing 41============ 42 43Contributions are welcome. Please open an issue or send me a pull request for a dedicated branch. 44Make sure the git commit hooks show it works. 45 46git commit hooks 47----------------------- 48enable commit hooks via 49 50 cd .git ; rm -rf hooks; ln -s ../git-hooks hooks ; cd .. 51