• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

git-hooks/H03-Mar-2017-

.gitignoreH A D03-Mar-2017291

.gitmodulesH A D03-Mar-201789

.travis.ymlH A D03-Mar-201793

LICENSEH A D03-Mar-20171 KiB

README.mdH A D03-Mar-20171.3 KiB

appveyor.ymlH A D03-Mar-2017194

lockfile.goH A D03-Mar-20175.3 KiB

lockfile_test.goH A D03-Mar-20175.9 KiB

lockfile_unix.goH A D03-Mar-2017331

lockfile_windows.goH A D03-Mar-2017594

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