Re: [libvirt] [PATCH v2 1/2] virfile: Adjust error path for virFileOpenForked

2015-02-09 Thread Michal Privoznik
On 30.01.2015 18:52, John Ferlan wrote: Rather than have a dummy waitpid loop and return of the failure status from recvfd, adjust the logic to save the recvfd error fd and then in priority order: - if waitpid failed, use that errno value - waitpid succeeded, but if the child exited

[libvirt] [PATCH v2 1/2] virfile: Adjust error path for virFileOpenForked

2015-01-30 Thread John Ferlan
Rather than have a dummy waitpid loop and return of the failure status from recvfd, adjust the logic to save the recvfd error fd and then in priority order: - if waitpid failed, use that errno value - waitpid succeeded, but if the child exited abnormally, report failure (use EACCES to report as