forked from OSchip/llvm-project
[msan] Allow waitpid while in __msan_init().
This is used in symbolizer init. llvm-svn: 173263
This commit is contained in:
parent
c1237a8b8f
commit
d1bfdc32b2
|
@ -512,6 +512,8 @@ INTERCEPTOR(int, wait, int *status) {
|
|||
}
|
||||
|
||||
INTERCEPTOR(int, waitpid, int pid, int *status, int options) {
|
||||
if (msan_init_is_running)
|
||||
return REAL(waitpid)(pid, status, options);
|
||||
ENSURE_MSAN_INITED();
|
||||
int res = REAL(waitpid)(pid, status, options);
|
||||
if (status)
|
||||
|
|
Loading…
Reference in New Issue