• E
    util: make it easier to reflect child exit status · 2b4f162e
    Eric Blake 提交于
    Thanks to namespaces, we have a couple of places in the code
    base that want to reflect a child exit status, including the
    ability to detect death by a signal, back to a grandparent.
    Best to make it a reusable function.
    
    * src/util/virprocess.h (virProcessExitWithStatus): New prototype.
    * src/libvirt_private.syms (util/virprocess.h): Export it.
    * src/util/virprocess.c (virProcessExitWithStatus): New function.
    * tests/commandtest.c (test23): Test it.
    Signed-off-by: NEric Blake <eblake@redhat.com>
    2b4f162e
libvirt_private.syms 45.0 KB