Signed-off-by: John Howard <jhoward@microsoft.com>
| 1 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,20 +0,0 @@ |
| 1 |
-package system |
|
| 2 |
- |
|
| 3 |
-// IsProcessAlive returns true if process with a given pid is running. |
|
| 4 |
-func IsProcessAlive(pid int) bool {
|
|
| 5 |
- // TODO Windows containerd. Not sure this is needed |
|
| 6 |
- // p, err := os.FindProcess(pid) |
|
| 7 |
- // if err == nil {
|
|
| 8 |
- // return true |
|
| 9 |
- // } |
|
| 10 |
- return false |
|
| 11 |
-} |
|
| 12 |
- |
|
| 13 |
-// KillProcess force-stops a process. |
|
| 14 |
-func KillProcess(pid int) {
|
|
| 15 |
- // TODO Windows containerd. Not sure this is needed |
|
| 16 |
- // p, err := os.FindProcess(pid) |
|
| 17 |
- // if err == nil {
|
|
| 18 |
- // p.Kill() |
|
| 19 |
- // } |
|
| 20 |
-} |