Increase delay for waitpid() in the smaller loop to 10000 microseconds.