2023-03-28 19:12:30 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
2023-08-11 13:12:13 +00:00
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
2023-03-28 19:12:30 +00:00
|
|
|
|
2021-11-16 18:04:01 +00:00
|
|
|
//go:build !windows
|
2015-01-24 15:09:24 +00:00
|
|
|
// +build !windows
|
|
|
|
|
2017-10-12 21:02:45 +00:00
|
|
|
package lock
|
2015-01-24 15:09:24 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"syscall"
|
|
|
|
)
|
|
|
|
|
|
|
|
// signalPid sends a sig signal to the process with process id pid.
|
|
|
|
func signalPid(pid int, sig syscall.Signal) error {
|
|
|
|
return syscall.Kill(pid, sig)
|
|
|
|
}
|