Incomplete Windows daemon support

This commit is contained in:
2025-04-05 18:54:27 -04:00
parent 94868f6bad
commit 6d9989b53a
11 changed files with 179 additions and 83 deletions
+1
View File
@@ -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)