Documentation
¶
Overview ¶
Package process provides cross-platform process management utilities.
This package abstracts platform differences in process handling:
- Signal handling (Windows lacks SIGTERM, uses Kill instead)
- Process group management (Unix has Setpgid, Windows does not)
- Daemon/service detachment patterns
Platform-specific implementations are in process_unix.go and process_windows.go.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAndSignal ¶
FindAndSignal finds a process by PID and sends a termination signal. Returns an error if the process cannot be found or signaled.
func SetDetached ¶
SetDetached configures a command to run detached from the parent process. On Unix, this sets up a new process group. On Windows, this is a no-op as basic detachment works differently.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.