blob: 54dd4b6e8c4d19558624638c5daf74c74675d407 (
plain) (
tree)
|
|
#include <tce/syscall.h>
#include <stdlib.h>
#include <stdio.h>
int main(char** args) {
int i;
term = open("/.ui/klog", 0);
if (term <= 0) return -1;
print("(init) Trivial/Computing Environment says hello. Press super to go home.\n");
for (i = 0; args[i] != 0; i++) {
if (i == 0) continue;
printf("(init) Spawning %s...\n", args[i]);
int pid = run(args[i], 0);
if (pid < 0) {
print("(init) Error. Sorry.\n");
} else {
waitpid(pid);
}
}
print("(init) Goodbye.\n");
}
|