diff options
author | Alex Auvolat <alex.auvolat@ens.fr> | 2015-03-02 23:30:16 +0100 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ens.fr> | 2015-03-03 10:30:03 +0100 |
commit | 155f63c4f6995acff2b9c7467cfd91d1f77f3272 (patch) | |
tree | 28e8239e13b50ad3d07b1e777f919ac5297bf6bf /src/kernel/user/syscall.c | |
parent | bb1a5fc74769301c0a792cb83d3fa0bda8a780cb (diff) | |
download | kogata-155f63c4f6995acff2b9c7467cfd91d1f77f3272.tar.gz kogata-155f63c4f6995acff2b9c7467cfd91d1f77f3272.zip |
Implement process termination and cleaning up (not completely though)
Diffstat (limited to 'src/kernel/user/syscall.c')
-rw-r--r-- | src/kernel/user/syscall.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/user/syscall.c b/src/kernel/user/syscall.c index 009903c..d9131b2 100644 --- a/src/kernel/user/syscall.c +++ b/src/kernel/user/syscall.c @@ -33,9 +33,9 @@ static char* sc_copy_string(uint32_t s, uint32_t slen) { static uint32_t exit_sc(sc_args_t args) { dbg_printf("Proc %d exit with code %d\n", current_process()->pid, args.a); - // TODO : use code... and process exiting is not supposed to be done this way - exit(); + process_exit(current_process(), PS_FINISHED, args.a); + ASSERT(false); return 0; } |