On 04/24/2014 06:49 AM, Andreas Färber wrote: > POSIX specifies that address_len shall on output specify the length of > the stored address; it does not however specify whether it may get > updated on failure as well to, e.g., zero.
Your reading of POSIX leaving the value undefined matches mine. It may indeed be worth a report to the POSIX folks to see if that should be tightened in the future to guarantee that it is unchanged on failure, but we can't rely on that now. > > In case EINTR occurs, re-initialize the variable to the desired value. > > Cc: Eric Blake <ebl...@redhat.com> > Signed-off-by: Andreas Färber <afaer...@suse.de> > --- > tests/libqtest.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Eric Blake <ebl...@redhat.com> -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature