process_vm_readv gets EINVAL if process is gone (SIGKILLed). Don't complain.
* util.c (umoven): Don't complain on EINVAL from process_vm_readv. (umovestr): Likewise. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
64acaa1193
commit
2945639eb8
6
util.c
6
util.c
@ -834,7 +834,8 @@ umoven(struct tcb *tcp, long addr, int len, char *laddr)
|
||||
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;
|
||||
}
|
||||
@ -1015,7 +1016,8 @@ umovestr(struct tcb *tcp, long addr, int len, char *laddr)
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user