[asan] Remove extra clone() arguments in test.
Android headers define clone() as a 4-argument function without ellipsis. llvm-svn: 201331
This commit is contained in:
parent
f79669a323
commit
4e6096b859
|
@ -24,7 +24,7 @@ int main(int argc, char **argv) {
|
||||||
char child_stack[kStackSize + 1];
|
char child_stack[kStackSize + 1];
|
||||||
char *sp = child_stack + kStackSize; // Stack grows down.
|
char *sp = child_stack + kStackSize; // Stack grows down.
|
||||||
printf("Parent: %p\n", sp);
|
printf("Parent: %p\n", sp);
|
||||||
pid_t clone_pid = clone(Child, sp, CLONE_FILES | CLONE_VM, NULL, 0, 0, 0);
|
pid_t clone_pid = clone(Child, sp, CLONE_FILES | CLONE_VM, NULL);
|
||||||
int status;
|
int status;
|
||||||
pid_t wait_result = waitpid(clone_pid, &status, __WCLONE);
|
pid_t wait_result = waitpid(clone_pid, &status, __WCLONE);
|
||||||
if (wait_result < 0) {
|
if (wait_result < 0) {
|
||||||
|
|
Loading…
Reference in New Issue