Remove setting for tracking replies - it's always true. Replace wait() with waitpid...