waitpid in zshrc