Skip to content

Commit

Permalink
userspace/libuserspace: invoke atexit on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
moodyhunter committed Dec 24, 2023
1 parent 2efc5f9 commit 619e9b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions userspace/libs/stdlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ void *realloc(void *ptr, size_t size)

void exit(int status)
{
atexit(NULL);
syscall_exit(status);
}

0 comments on commit 619e9b5

Please sign in to comment.