Skip to content

Commit

Permalink
mxqd: Remove volatile sig_atomic_t type
Browse files Browse the repository at this point in the history
We process signals synchronously now. Change "volatile sig_atomic_t" to
"int" type.
  • Loading branch information
donald committed Jul 5, 2017
1 parent 784dcbc commit e64d665
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mxqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@

#define RUNNING_AS_ROOT (getuid() == 0)

volatile sig_atomic_t global_sigint_cnt=0;
volatile sig_atomic_t global_sigterm_cnt=0;
volatile sig_atomic_t global_sigquit_cnt=0;
volatile sig_atomic_t global_sigrestart_cnt=0;
static int global_sigint_cnt=0;
static int global_sigterm_cnt=0;
static int global_sigquit_cnt=0;
static int global_sigrestart_cnt=0;

static sigset_t all_signals;

Expand Down

0 comments on commit e64d665

Please sign in to comment.