mirror of
https://github.com/rwinkhart/rcw.git
synced 2026-10-29 06:58:15 -04:00
Incomplete Windows daemon support
This commit is contained in:
1 parent
94868f6bad
commit
6d9989b53a
11 files changed
+179
-83
No files matched your search
@@ -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