In versions prior to 58, a killall chromium-browse[r]
was sufficient to kill all tabs while leaving the browser chrome intact. How can this behavior be replicated for the new version of the browser?
The best I've managed is the following which will also take out extensions when doing its thing:
pgrep -f 'chromium-browser --type=renderer' | while read pid; do kill $pid; done
Edit for context: I have the amount of memory that chromium may use restricted by cgroups. When that amount is exceeded, chromium hangs swapping memory from and to disk. Chromium does not respond to user input when in this state, so browser-based tab control is not an option.
Edit for clarity: Killing a tab does not imply closing it. What I want is for the tab itself to remain, but the rendering process to die. This is usually indicated by displaying a "Something went wrong" message instead of normal tab content.