mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 07:28:21 +00:00
file: handle O_NOCTTY in fileflagstovnodeflags
This commit is contained in:
@@ -64,6 +64,8 @@ static inline int fileflagstovnodeflags(int flags) {
|
|||||||
vnflags |= V_FFLAGS_WRITE;
|
vnflags |= V_FFLAGS_WRITE;
|
||||||
if (flags & O_NONBLOCK)
|
if (flags & O_NONBLOCK)
|
||||||
vnflags |= V_FFLAGS_NONBLOCKING;
|
vnflags |= V_FFLAGS_NONBLOCKING;
|
||||||
|
if (flags & O_NOCTTY)
|
||||||
|
vnflags |= V_FFLAGS_NOCTTY;
|
||||||
|
|
||||||
return vnflags;
|
return vnflags;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user