thread_exit() now removes the registered images when the team goes down.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2427 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2003-01-12 16:30:09 +00:00
parent c8019cad42
commit 1da55179ee
1 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,7 @@
#include <Errors.h>
#include <stage2.h>
#include <string.h>
#include <kimage.h>
#include <stdio.h>
#include <stdlib.h>
#include <resource.h>
@ -995,11 +996,15 @@ thread_exit(void)
delete_sem(team->death_sem);
}
cached_death_sem = -1;
// free team resources
vm_put_aspace(team->aspace);
vm_delete_aspace(team->_aspace_id);
delete_owned_ports(team->id);
sem_delete_owned_sems(team->id);
remove_images(team);
vfs_free_io_context(team->io_context);
free(team);
}