-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for multiple processes #492
Comments
Answering my own question, I believe that could be possible. We'd need to actually fork the process, which means we'd lose direct access to lkl. So we'd have to use some form of IPC, possibly shared memory and semaphores. |
Any use-case you have in mind? Fully implementing fork/clone would require MMU support, which we don't currently have. |
Many programs use fork, like sh, make, some compilers, etc... So not supporting it could limit possible applications. More specifically, I had intended to use lkl for compiling stuff that needs chroot and mount (like Linux from Scratch) without requiring root or even being able to compile it on Windows. |
This is not a use-case that we plan to suport with LKL. UML or VMs are better suited for these kind of uses-cases. |
Indeed, UML fits my use case better. |
linux/tools/lkl/lib/posix-host.c
Lines 27 to 28 in 1844b34
linux/arch/lkl/include/asm/syscalls.h
Lines 11 to 12 in 1844b34
Right now, the
fork
,vfork
andclone
syscalls are not implemented. Is it possible to add support for multiple processes?The text was updated successfully, but these errors were encountered: