rem: while ((death = list_get_next_item(&team->dead_children.list, death)) != NULL)
add: while ((death = list_remove_head_item(&team->dead_children.list)) != NULL)
context: delete_team_struct(struct team *team){	struct death_entry *death = NULL;	delete_sem(team->dead_children.sem);	while ((death = list_get_next_item(&team->dead_children.list, death)) != NULL)		free(death);	free(team);}