#include <stdio.h>
#include <syscall.h>
Go to the source code of this file.
|
int | main (int argc, const char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
const char * |
argv[] |
|
) |
| |
Definition at line 5 of file init.c.
6{
8
10
11 const char *args[] = {
"/bin/shell",
NULL };
12 status =
OSSpawn(
"/bin/shell", &args[0]);
13 if (status > 100) {
14 printf(
"init: Could not spawn shell %016lx\n", status);
15 }
16
17#if 0
18 while (1) {
20 printf(
"init: Zombie process exited (%016lx)\n", status);
21 }
22#else
23 for (;;)
24 ;
25#endif
26}
uint64_t OSSpawn(const char *path, const char *argv[])
uint64_t OSWait(uint64_t pid)
int printf(const char *fmt,...)
int fputs(const char *str, FILE *fh)