When I had loads of firefox windows open and wanted to close them quickly I did
killall firefox
using killall
from the psmisc
package in Ubuntu.
Nothing happened.
I looked in the list of my processes and there were many lines of the form
alle_meije 55061 7662 0 01:16 ? 00:00:31 /usr/lib/firefox/firefox -contentproc -childID 126 -isForBrowser -prefsLen 9704 -prefMapSize 254479 -jsInitLen 279340 -parentBuildID 20220106144528 -appDir /usr/lib/firefox/browser 7662 true tab
so, firefox
being the 'basename' of the executable there, I would have expected these to be killed.
Sure enough, doing it by hand using
kill $( ps -fu $USER | grep firefox | awk '{print $2}' )
did close all these windows. Does anyone know why the same does not happen with killall
?