Seemingly working fork

This commit is contained in:
2024-04-13 23:02:51 +02:00
parent 03777624fb
commit a6c551e443
10 changed files with 129 additions and 25 deletions

View File

@@ -6,8 +6,8 @@
#include <fcntl.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/wait.h>
#include <unistd.h>
void ls() {
DIR *rfd = opendir("/");
@@ -45,7 +45,7 @@ int main() {
print_tasks();
} else {
execve(line, 0, 0);
sleep(10000);
// sleep(10000);
}
}
}