summaryrefslogtreecommitdiff
path: root/src/user/init
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2012-05-18 19:40:11 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2012-05-18 19:40:11 +0200
commitac10c1a29c44b0cb29960cd0f792c7361bc430ce (patch)
tree33466e227a0214d40de373b72c83a750dba29195 /src/user/init
parent478c691187fbc9ba4ccaacf92f57828eef20041c (diff)
downloadTCE-ac10c1a29c44b0cb29960cd0f792c7361bc430ce.tar.gz
TCE-ac10c1a29c44b0cb29960cd0f792c7361bc430ce.zip
Added some stuff.
Diffstat (limited to 'src/user/init')
-rw-r--r--src/user/init/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/user/init/main.c b/src/user/init/main.c
index 7d4ea0e..54dd4b6 100644
--- a/src/user/init/main.c
+++ b/src/user/init/main.c
@@ -5,20 +5,20 @@
int main(char** args) {
int i;
- FILE term = open("/.ui/klog", 0);
+ term = open("/.ui/klog", 0);
if (term <= 0) return -1;
- fprint(term, "(init) Trivial/Computing Environment says hello. Press super to go home.\n");
+ print("(init) Trivial/Computing Environment says hello. Press super to go home.\n");
for (i = 0; args[i] != 0; i++) {
if (i == 0) continue;
- fprintf(term, "(init) Spawning %s...\n", args[i]);
+ printf("(init) Spawning %s...\n", args[i]);
int pid = run(args[i], 0);
if (pid < 0) {
- fprint(term, "(init) Error. Sorry.\n");
+ print("(init) Error. Sorry.\n");
} else {
waitpid(pid);
}
}
- fprint(term, "(init) Goodbye.\n");
+ print("(init) Goodbye.\n");
}