From fbfc078e9f44c1c1e95c9c484f1d5650bcf631b7 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Sat, 27 Jul 2024 16:57:39 -0400 Subject: lots and lots of userspace stuff --- applications/init/source/main.cpp | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'applications/init') 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 +#include -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; - } -- cgit v1.2.3