mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-20 06:56:27 -05:00
Use fatal::abort() rather than assert in places
This commit is contained in:
parent
61365d226d
commit
7763c7384a
5 changed files with 9 additions and 10 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue