login: use sig_atomic_t type for variable accessed from signal handler

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2020-11-12 23:34:16 +00:00
parent 9efa805cd7
commit 42ccc9cfb4
No known key found for this signature in database
GPG Key ID: 0D46FEF7E61DBB46
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ struct login_context {
*/
static unsigned int timeout = LOGIN_TIMEOUT;
static int child_pid = 0;
static volatile int got_sig = 0;
static volatile sig_atomic_t got_sig = 0;
static char timeout_msg[128];
#ifdef LOGIN_CHOWN_VCS