Use fatal::abort() rather than assert in places

This commit is contained in:
Antonio SJ Musumeci 2026-03-17 08:24:05 -05:00
parent 0b3600ddcf
commit 0b4ecc0226
5 changed files with 9 additions and 10 deletions

View file

@ -1,10 +1,8 @@
#include "maintenance_thread.hpp"
#include "fatal.hpp"
#include "mutex.hpp"
#include "fmt/core.h"
#include <cassert>
#include <vector>
#include <pthread.h>
@ -46,7 +44,8 @@ MaintenanceThread::setup()
int rv;
rv = pthread_create(&g_thread,NULL,_thread_loop,NULL);
assert((rv == 0) && "pthread_create failed");
if(rv != 0)
fatal::abort("pthread_create failed: rv={}",rv);
}
void