diff options
Diffstat (limited to 'applications/init')
-rw-r--r-- | applications/init/source/main.cpp | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/applications/init/source/main.cpp b/applications/init/source/main.cpp index 5dfa81a..ca137a4 100644 --- a/applications/init/source/main.cpp +++ b/applications/init/source/main.cpp @@ -1,19 +1,11 @@ -#include <euler/start_process.hpp> +#include <euler/syscall.hpp> -int main(int, char **) { - - __euler_process_handle dummy; - - euler::start_process wm_process("/bin/compositor"); - wm_process.add_env_variable("ARGC", "1"); - wm_process.add_env_variable("ARGV0", "/bin/compositor"); - wm_process.start(dummy); - - euler::start_process hello_process("/bin/hello"); - hello_process.add_env_variable("ARGC", "1"); - hello_process.add_env_variable("ARGV0", "/bin/hello"); - hello_process.start(dummy); +//this does not keep track of the processes or whether they have started +//successfully, nor does it set their argc, argv, stdin, stdout, or stderr. +int main(int, char **) { + euler::syscall::process_handle dummy; + euler::syscall::start_process("/bin/compositor", {}, {}, dummy); + euler::syscall::start_process("/bin/hello", {}, {}, dummy); return 0; - } |