[PATCH] virprocess: Provide non-Linux stubs for virProcessGet{Stat, Sched}Info

Michal Prívozník mprivozn at redhat.com
Fri Jan 7 12:51:39 UTC 2022

On 1/7/22 13:38, Ani Sinha wrote:

> Ok fine but still, life is not ideal ... libraries do have bugs.

In that case, where do we draw the line? Say pthread has a bug and it
doesn't spawn threads. Worse, it doesn't even return any error value.
Should we mitigate that too?

I'd say stick with what's documented (abort on OOM and/or !NULL
returned) and make our lives simpler. In fact, if we'd crash because we
accessed NULL we will immediately see where and why and can report the
bug to glib for benefit of us and others.


More information about the libvir-list mailing list