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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user