Fix userland exit() type

This commit is contained in:
TXuian
2024-05-16 14:44:41 +08:00
parent 56ec6edbe5
commit 0b858de120
13 changed files with 26 additions and 25 deletions

View File

@@ -28,7 +28,7 @@ int main(int argc, char* argv[])
char* shell_task_param[2] = { "/shell", 0 };
if ((fd = open(&session, shell_task_param[0])) < 0) {
printf("Open %s failed\n", shell_task_param[0]);
exit();
exit(1);
}
if (spawn(&session, fd, read, fsize, shell_task_param[0], shell_task_param) < 0) {
@@ -37,6 +37,6 @@ int main(int argc, char* argv[])
close(&session, fd);
exit();
exit(0);
return 0;
}