It is supposed to, but perhaps the catching of signals is not properly
setup. Not sure how to try it out other than closing the xterm
normally. If you "kill -9" the xterm it might not work. Closing the
window manager should also work OK. At least this mechanism is used to
avoid leaving swap files laying around, and that works quite well, thus
'autowriteall' should also work. But I don't think there is a test for
it.
--
A village. Sound of chanting of Latin canon, punctuated by short, sharp
cracks. It comes nearer. We see it is a line of MONKS ala SEVENTH SEAL
flagellation scene, chanting and banging themselves on the foreheads with
wooden boards.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD