mirror of
https://github.com/rwinkhart/rcw.git
synced 2026-08-30 05:46:40 -04:00
Incomplete Windows daemon support
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
)
|
||||
|
||||
// pidToPath returns the path of the executable that has the given PID.
|
||||
// TODO remove reliance on system command OR verify authenticity of "lsof" binary
|
||||
func pidToPath(pid int) string {
|
||||
pidString := strconv.Itoa(pid)
|
||||
cmd := exec.Command("lsof", "-a", "-dtxt", "-p"+pidString)
|
||||
|
||||
Reference in New Issue
Block a user