diff options
author | dzwdz | 2022-08-08 01:00:48 +0200 |
---|---|---|
committer | dzwdz | 2022-08-08 01:00:48 +0200 |
commit | 1252bdeaf795629ac34161bc59a263e998483247 (patch) | |
tree | 05d2fcba83fe0eb1f3d18044decca10dcea184c6 /src/kernel | |
parent | b99d66ce12b4a1a0dd452d8a38006eede0c05cf2 (diff) |
user: separate tmpfs into its own executable, add `mount`
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/syscalls.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c index 07e2e36..5dca49f 100644 --- a/src/kernel/syscalls.c +++ b/src/kernel/syscalls.c @@ -287,6 +287,7 @@ long _syscall_close(handle_t hid) { long _syscall_fs_wait(char __user *buf, long max_len, struct fs_wait_response __user *res) { struct vfs_backend *backend = process_current->controlled; + // TODO can be used to tell if you're init if (!backend) SYSCALL_RETURN(-1); process_transition(process_current, PS_WAITS4REQUEST); |