1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:58:11 +00:00

Kernel: Fix cloning file descriptions on fork

After a fork, the parent and the child are supposed to share
the same file description. For example, modifying the current
offset of a file description is visible in both of them.
This commit is contained in:
Sergey Bugaev 2019-08-11 16:07:47 +03:00 committed by Andreas Kling
parent 2396b2ed70
commit 1606261c58
3 changed files with 1 additions and 22 deletions

View file

@ -26,8 +26,6 @@ public:
static NonnullRefPtr<FileDescription> create(File&, SocketRole = SocketRole::None);
~FileDescription();
NonnullRefPtr<FileDescription> clone();
int close();
off_t seek(off_t, int whence);