Skip to content

Commit

Permalink
main UPDATE loop control var reset
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed Jul 1, 2024
1 parent 7ec275a commit a327574
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
#endif

/** @brief flag for main loop */
ATOMIC_T loop_continue = 1;
ATOMIC_T loop_continue;

static void *worker_thread(void *arg);

Expand Down Expand Up @@ -1119,6 +1119,9 @@ main(int argc, char *argv[])
sigset_t block_mask;
#endif

/* reset control var */
ATOMIC_STORE_RELAXED(loop_continue, 1);

/* until daemonized, write messages to both syslog and stderr */
openlog("netopeer2-server", LOG_PID, LOG_DAEMON);
np2_stderr_log = 1;
Expand Down

0 comments on commit a327574

Please sign in to comment.