Added a list of death_entry's to the teams structure. It stores the

exit status of (non-main) threads of a team. Fixes bug #1644.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23009 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2007-11-28 00:07:32 +00:00
parent d61a403741
commit 92ab20b3a4
3 changed files with 67 additions and 7 deletions
+5 -1
View File
@@ -94,7 +94,9 @@ struct team_watcher {
};
#define MAX_DEAD_CHILDREN 32
// this is a soft limit for the number of dead entries in a team
// this is a soft limit for the number of child death entries in a team
#define MAX_DEAD_THREADS 32
// this is a soft limit for the number of thread death entries in a team
typedef struct team_dead_children team_dead_children;
typedef struct team_job_control_children team_job_control_children;
@@ -155,6 +157,8 @@ struct team {
int pending_signals;
void *io_context;
sem_id death_sem; // semaphore to wait on for dying threads
struct list dead_threads;
int dead_threads_count;
team_dead_children *dead_children;
team_job_control_children *stopped_children;