pesos / grofer

A system and resource monitoring tool written in Golang!
Apache License 2.0
352 stars 52 forks source link

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

Closed MadhavJivrajani closed 3 years ago

MadhavJivrajani commented 4 years ago

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.

MadhavJivrajani commented 4 years ago

To be worked on after #80