Discovered by running test/sigkill_rain under strace.
* util.c (umoven): Do not emit error message if process_vm_readv
fails with ESRCH.
(umovestr): LikeWise.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
if (r < 0) {
if (errno == ENOSYS)
process_vm_readv_not_supported = 1;
- else if (errno != EINVAL) /* EINVAL is seen if process is gone */
+ else if (errno != EINVAL && errno != ESRCH) /* 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 if (errno != EINVAL) /* EINVAL is seen if process is gone */
+ else if (errno != EINVAL && errno != ESRCH) /* EINVAL is seen if process is gone */
/* strange... */
perror("process_vm_readv");
goto vm_readv_didnt_work;