Why am I getting a segmentation fault in this while loop? Especially on player_pid value
int counter_for_tasks = number_of_tasks/2; int i = 0; wh