diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2011-10-24 17:34:18 +0100 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2012-07-20 20:36:06 +0100 |
commit | 2ef6f69a1bb0b0e15aa3a3a94915d35e3be410fb (patch) | |
tree | d2f55a76848fe7051661c967becef13e4d52c773 | |
parent | Only enforce check for YAJL when starting a VM (diff) | |
download | libvirt-2ef6f69a1bb0b0e15aa3a3a94915d35e3be410fb.tar.gz libvirt-2ef6f69a1bb0b0e15aa3a3a94915d35e3be410fb.tar.bz2 libvirt-2ef6f69a1bb0b0e15aa3a3a94915d35e3be410fb.zip |
Report 'errno' in int1 field of virErrorPtr
When reporting a system error (VIR_ERR_SYSTEM_ERROR) via
virReportSystemError, we should copy the errno value into
the 'int1' field of the virErrorPtr struct. This allows
callers to detect certain errno conditions & discard the
error
* src/util/virterror.c: Place errno value in int1 field
-rw-r--r-- | src/util/virterror.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/virterror.c b/src/util/virterror.c index cb37be010..b5c6853a6 100644 --- a/src/util/virterror.c +++ b/src/util/virterror.c @@ -1289,7 +1289,7 @@ void virReportSystemErrorFull(int domcode, virRaiseErrorFull(filename, funcname, linenr, domcode, VIR_ERR_SYSTEM_ERROR, VIR_ERR_ERROR, - msg, msgDetail, NULL, -1, -1, msg, msgDetail); + msg, msgDetail, NULL, theerrno, -1, msg, msgDetail); errno = save_errno; } |