pesos/grofer

[FEATURE REQ] Implement a menu of signal type options for killing a process

MadhavJivrajani opened this issue · 1 comments

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 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 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.

To be worked on after #80