first commit

This commit is contained in:
2025-02-21 08:39:49 +08:00
commit 6aa7311ce6
80 changed files with 12752 additions and 0 deletions

14
user/zombie.c Normal file
View File

@ -0,0 +1,14 @@
// Create a zombie process that
// must be reparented at exit.
#include "kernel/types.h"
#include "kernel/stat.h"
#include "user/user.h"
int
main(void)
{
if(fork() > 0)
sleep(5); // Let child exit before parent.
exit(0);
}