mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Auto-commit fs_open_fd.cpp
This commit is contained in:
parent
b8f8e9ddc9
commit
0e541552b0
1 changed files with 3 additions and 1 deletions
|
|
@ -28,7 +28,9 @@ int
|
|||
fs::open_fd(const int fd_,
|
||||
const int flags_)
|
||||
{
|
||||
if(procfs::PROC_SELF_FD_FD <= 0)
|
||||
const int proc_fd = procfs::PROC_SELF_FD_FD.load();
|
||||
|
||||
if(proc_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