Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: refactor signal handling across platforms
- Refactor signal handling in `manager.go` to use a slice of signals instead of individual signal constants. - Remove handling of `SIGTSTP` signal and associated logging in `manager.go`. - Update signal sending in tests within `manager_test.go` to use `os.FindProcess` and `process.Signal` instead of `syscall.Kill`. - Add `os` package import in `manager_test.go`. - Create new file `signals_unix.go` with a slice of signals for Unix-based systems including `SIGINT`, `SIGTERM`, and `SIGTSTP`. - Create new file `signals_windows.go` with a slice of signals for Windows systems including `SIGINT` and `SIGTERM`. Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
- Loading branch information