summaryrefslogtreecommitdiff
path: root/userspace/init.c
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-09-02 01:44:40 +0200
committerMiguel <m.i@gmx.at>2018-09-02 01:44:40 +0200
commitc459fab7662eaf45df9994c828065b9fc8d4a8ac (patch)
treedf1504de1c254a18b44bad24d530531790ad8aef /userspace/init.c
parent8e3411139b27a3421e9ac75c13f14f99f6dd3137 (diff)
syscalls fine
Diffstat (limited to 'userspace/init.c')
-rw-r--r--userspace/init.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/userspace/init.c b/userspace/init.c
index 6484b78..a82a597 100644
--- a/userspace/init.c
+++ b/userspace/init.c
@@ -10,10 +10,8 @@ int main(int argc, char **argv)
time_t ltime;
time(&ltime);
printf("Current time: %s", ctime(&ltime));
-
printf("fool-init: spawning a Fool's Shell\n");
- //while(1)printf("x");
// loop forever and spawn shells if the top-shell exits
while(1)
@@ -33,10 +31,8 @@ int main(int argc, char **argv)
// wait until our child process state changes (exits)
// and respawn SHELL
- while(1);
_wait(&status);
-
printf("fool-init: catched exit of process %d.\n",pid);
printf("fool-init: respawning a Fools Shell\n");