• E
    util: ensure safe{read,write,zero} return is checked · f9f6c34c
    Eric Blake 提交于
    Based on a warning from coverity.  The safe* functions
    guarantee complete transactions on success, but don't guarantee
    freedom from failure.
    
    * src/util/util.h (saferead, safewrite, safezero): Add
    ATTRIBUTE_RETURN_CHECK.
    * src/remote/remote_driver.c (remoteIO, remoteIOEventLoop): Ignore
    some failures.
    (remoteIOReadBuffer): Adjust error messages on read failure.
    * daemon/event.c (virEventHandleWakeup): Ignore read failure.
    f9f6c34c
util.h 9.7 KB