Is your feature request related to a problem? Please describe.
Currently, the functionality for killing a process is based on sending a SIGKILL to the process. Instead of always sending a SIGKILL, it might be better to provide the user with a list of signal types that can be used to terminate the process, eg: SIGTERM, SIGSTOP, etc.
Describe the solution you'd likegopsutil provides support for 4 different types of signals that can be sent to a process. Support for signals other than the available ones can also optionally be added. A new menu can be displayed when the keys for "killing" a process are pressed, this menu can display the signal options as a termui list. Based on the selected option, that particular signal should be sent.
Additional context
Run htop and press F9 to kill a process, a menu of signal options is provided to choose from.
Is your feature request related to a problem? Please describe. Currently, the functionality for killing a process is based on sending a
SIGKILL
to the process. Instead of always sending aSIGKILL
, it might be better to provide the user with a list of signal types that can be used to terminate the process, eg:SIGTERM
,SIGSTOP
, etc.Describe the solution you'd like
gopsutil
provides support for 4 different types of signals that can be sent to a process. Support for signals other than the available ones can also optionally be added. A new menu can be displayed when the keys for "killing" a process are pressed, this menu can display the signal options as atermui list
. Based on the selected option, that particular signal should be sent.Additional context Run
htop
and pressF9
to kill a process, a menu of signal options is provided to choose from.