An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

github.com/influxdata/pidfile

Package pidfile implements pidfile creation. On Linux and Darwin, this package uses flock to take an exclusive lock of the pidfile. If another process tries to lock the file, an error will be returned. If the previous process dies and does not unlock the file or delete it, the operating system cleans up the lock automatically and this package will adopt the file and lock it. This package relies on the operating system to handle the locking. Some filesystems, such as NFS, may not implement flock in a reliable way. You should not use this package on such operating systems. The file locking is only an advisory. If the file is manually opened by a call to os.Open, the file will still open normally.

Ecosystem
proxy.golang.org
Latest Release
v0.0.0-20171020183418-16df69ba8e75
over 8 years ago
Versions
1
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/influxdata/pidfile
spec
License MIT
Namespace github.com/influxdata
First Release over 8 years ago
Last Synced 24 days ago
Repository
Stars 3 on GitHub
Forks 2 on GitHub
Rankings on proxy.golang.org
Overall Top 8.2%