mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 01:41:59 -05:00
11ead5c84f
Instead of returning a raw pointer, which could be technically invalid when using it in the caller function, we return a valid RefPtr of such device. This ensures that the code in DevPtsFS is now safe from a rare race condition in which the SlavePTY device is gone but we still have a pointer to it. |
||
---|---|---|
.. | ||
FileSystem.cpp | ||
FileSystem.h | ||
Inode.cpp | ||
Inode.h |