* util.c (umoven): Don't complain on EINVAL from process_vm_readv.
(umovestr): Likewise.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
if (r < 0) {
if (errno == ENOSYS)
process_vm_readv_not_supported = 1;
- else /* strange... */
+ else if (errno != EINVAL) /* EINVAL is seen if process is gone */
+ /* strange... */
perror("process_vm_readv");
goto vm_readv_didnt_work;
}
if (r < 0) {
if (errno == ENOSYS)
process_vm_readv_not_supported = 1;
- else /* strange... */
+ else if (errno != EINVAL) /* EINVAL is seen if process is gone */
+ /* strange... */
perror("process_vm_readv");
goto vm_readv_didnt_work;
}