From: Denys Vlasenko Date: Sat, 28 Jan 2012 01:49:48 +0000 (+0100) Subject: process_vm_readv gets EINVAL if process is gone (SIGKILLed). Don't complain. X-Git-Tag: v4.7~187 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2945639eb854598dbbdc98c4f7e965a0a99492dd;p=strace 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 --- diff --git a/util.c b/util.c index 85207cdf..73c09ca9 100644 --- a/util.c +++ b/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; }