summaryrefslogtreecommitdiff
path: root/applications/init
diff options
context:
space:
mode:
authorBenji Dial <benji@benjidial.net>2024-07-27 16:57:39 -0400
committerBenji Dial <benji@benjidial.net>2024-07-27 16:57:39 -0400
commitfbfc078e9f44c1c1e95c9c484f1d5650bcf631b7 (patch)
treecab539c8cbbac81d895b6f8be695f3f53bf8f4d5 /applications/init
parent9af5588c30c4126a2800aae1afcb0de2c373dc6c (diff)
downloadhilbert-os-fbfc078e9f44c1c1e95c9c484f1d5650bcf631b7.tar.gz
lots and lots of userspace stuff
Diffstat (limited to 'applications/init')
-rw-r--r--applications/init/source/main.cpp22
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;
-
}