Skip to content

Commit

Permalink
disabling cancel threads before shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Nov 22, 2024
1 parent e82a227 commit 7d37f12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions neb_module_naemon/result_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ void *result_worker( void * data ) {
}
}

pthread_setcancelstate( PTHREAD_CANCEL_DISABLE, NULL);
pthread_cleanup_pop(0);
gm_free_worker(&worker);

Expand Down

0 comments on commit 7d37f12

Please sign in to comment.