Commit 727b4ded authored by Dridi Boukelmoune's avatar Dridi Boukelmoune Committed by Reza Naghibi

vtcp: Ignore EINTR with sanitizers

Technically it can also happen with a debugger attached to a process
despite SA_RESTART.
parent 0777683d
......@@ -600,6 +600,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