lockfile

package
v4.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanAndExitOnInterrupt

func CleanAndExitOnInterrupt(clean func()) func()

the returned function may be used to avoid goroutine leak (also avoid conflicting behavior with versionmanager/proxy.transmitIncreasingSignal).

func WriteWithCustomLockPath added in v4.8.0

func WriteWithCustomLockPath(lockDir string, folderName string, displayer loghelper.Displayer) func()

WriteWithCustomLockPath allows specifying a custom lock file path. ! lockDir must already exist (no mkdir here). the returned function must be used to delete the lock.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL