sys_exit  [kernel/exit.c]


Terminates current process. The value in ebx is returned to the parent process as the process's exit status, and can be collected using one of the sys_wait* family of calls.

Arguments

eax 1
ebx Error code.

Return values

The system call doesn't return anything.

Remarks

This system call terminates the calling process "immediately". Any open file descriptors belonging to the process are closed; any children of the process are inherited by process 1, init, and the process's parent is sent a SIGCHLD signal.

Compatibility

n/a