You could hijack htop's s command. In htop, pressing s invokes strace -p <the-pid-of-the-selected-process>.
Then what you could do is create a strace command that contains something like:
#! /bin/sh - pids=$(ps -eo pid= -o ppid= | awk -v exclude="$PPID" -v pid="$2" ' function descends(p) { if (p == exclude) return 0 if (p == pid) return 1 if (p <= 1) return 0 return descends(parent[p]) } { parent[$1]=$2 } END { for (p in parent) if (descends(p)) print p }' ) if [ -z "$pids" ]; then echo >&2 "No process found to kill" else echo >&2 Killing $pids kill $pids fi
And place it in some directory like ~/.htop-hijack, and call htop as:
PATH=~/.htop-hijack:$PATH htop
Then, pressing s would invoke that command instead of strace (you need to press Esc to return to the main screen afterwards).