Skip to content

[syscall] exit()  #8

Description

@ZackyGameDev

Allow processes to neatly terminate using an exit() syscall.

Once a user program is done executing it should be able to call "exit()", and "exit()" should also be naturally called at the end of _start() functions in user programs.

exit syscall should have syscall number 3. it should also accept an exit code.

on os side, when a user does sys_exit, it should mark that user process as terminated in order to prevent the scheduler from trying to run it again. using Process::set_state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededsyscallSyscalls related stuff

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions