Skip to content

Commit

Permalink
Fix typo about Linux Server Name
Browse files Browse the repository at this point in the history
  • Loading branch information
Tardis07 committed Jan 28, 2024
1 parent 6e1272b commit 45d4caf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sys/restart_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func KillProcess() error {
cmd = exec.Command("taskkill", "/IM", "PalServer-Win64-Test-Cmd.exe", "/F")
} else {
// 非Windows: 使用pkill命令和进程名称
cmd = exec.Command("pkill", "-f", "PalServer-Win64-Test-Cmd.exe")
cmd = exec.Command("pkill", "-f", "PalServer-Linux-Test")
}

return cmd.Run()
Expand Down
2 changes: 1 addition & 1 deletion sys/restart_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func KillProcess() error {
cmd = exec.Command("taskkill", "/IM", "PalServer-Win64-Test-Cmd.exe", "/F")
} else {
// 非Windows: 使用pkill命令和进程名称
cmd = exec.Command("pkill", "-f", "PalServer-Win64-Test-Cmd.exe")
cmd = exec.Command("pkill", "-f", "PalServer-Linux-Test")
}

cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}
Expand Down

0 comments on commit 45d4caf

Please sign in to comment.