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:
parent
9efa805cd7
commit
42ccc9cfb4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue