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

This commit is contained in:
Antonio SJ Musumeci 2026-03-17 08:24:05 -05:00 • committed by trapexit
parent 61365d226d
commit 7763c7384a
5 changed files with 9 additions and 10 deletions

View file

@ -21,15 +21,15 @@
#if defined(__linux__)
#include "fmt/core.h"
#include "fs_openat.hpp"
#include "fatal.hpp"
#include "procfs.hpp"
#include <cassert>
int
fs::open_fd(const int fd_,
const int flags_)
{
assert(procfs::PROC_SELF_FD_FD > 0);
if(procfs::PROC_SELF_FD_FD <= 0)
fatal::abort("procfs::PROC_SELF_FD_FD must be > 0");
const int flags = (flags_ & ~O_NOFOLLOW);