Fix coverity warning about unused waitpid return value