mirror of
https://github.com/RGBCube/serenity
synced 2025-05-17 20:55:07 +00:00
Add basic PTY support.
For now, there are four hard-coded PTYs: /dev/pt{m,s}[0123] Use this in the Terminal to open a pty pair and spawn a shell.
This commit is contained in:
parent
ecb4ab0943
commit
2f74c2f430
21 changed files with 287 additions and 10 deletions
|
@ -265,6 +265,7 @@ RetainPtr<FileDescriptor> VFS::open(const String& path, int& error, int options,
|
|||
auto inode = resolve_path(path, base, error, options);
|
||||
if (!inode.is_valid())
|
||||
return nullptr;
|
||||
// FIXME: Propagate any error from get_or_create_node().
|
||||
auto vnode = get_or_create_node(inode);
|
||||
if (!vnode)
|
||||
return nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue