Skip to content

Commit 2dd98b1

Browse files
committed
Refactor: based: Set shutting_down to true in based_terminate()
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
1 parent e3b0b9d commit 2dd98b1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

daemons/based/pacemaker-based.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ based_cleanup(void)
246246
void
247247
based_terminate(crm_exit_t exit_status)
248248
{
249+
shutting_down = true;
250+
249251
if (exit_status != CRM_EX_OK) {
250252
/* After calling g_main_loop_quit(), sources that have already been
251253
* dispatched are still executed. On error, skip that and exit

0 commit comments

Comments
 (0)