Is there a way to programmatically wait for a previously initiated
virDomainCoreDumpWithFormat() where the process that started it died? I'm looking at
the API and don't seem to find anything relevant. I suppose I could poll via
virDomainGetJobStats(), but, ideally, I'd like a function that would join the dump job
and return when the dump job finishes.