Commit b8b29be5 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

vtcp: Ignore EINTR with sanitizers

Technically it can also happen with a debugger attached to a process
despite SA_RESTART.
parent 5891cb0b
......@@ -628,6 +628,10 @@ VTCP_Check(ssize_t a)
*/
if (errno == EINVAL)
return (1);
#endif
#if (defined(__SANITIZER) || __has_feature(address_sanitizer))
if (errno == EINTR)
return (1);
#endif
return (0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment