summaryrefslogtreecommitdiff
path: root/userland/init/init.c
blob: 78c4420ccd80d0ceca6a76e5de81be2a66b9471d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <unistd.h>

int main(void) {
  if (fork())
    for (;;)
      wait(NULL);

  char *a[] = {NULL};
  execv("/term", a);
  return 1;
}