Subject: bug#36160: 25.2; Emacs does not ask to save modified files when shutting down OS

From: Eli Zaretskii <[email-masked]>
Date: Thu, 13 Jun 2019 22:24:32 +0300

> From: Glenn Morris <[email-masked]>
> Date: Thu, 13 Jun 2019 13:36:21 -0400
> Cc: [email-masked], Johan Pretorius <[email-masked]>
> 
> Shutdown sends SIGTERM, so Emacs could (auto)save on receipt of that
> signal (if it doesn't already do so?).

AFAIU, we don't: we just call kill-emacs.

But how to distinguish SIGTERM due to system shutdown and SIGTERM when
the user triggers the signal?