answer #1
exercise 2. fork and stack copy
exercise 3: swapped polling for blocking
exercise 4: fix zombie process bug.