X-Git-Url: http://git.thejh.net/?p=tools.git;a=blobdiff_plain;f=tools%2Fracyopen_simple.c;h=b70520a3f786774560c7d92b7c24ec8bf8dbd96e;hp=e4d5c06fa3ef455012ed0d1588ab19c5a2306851;hb=23dee97330ca19edf089e9399bdfb6bc78354a5f;hpb=60706164dfb67737ccd4b761818eabce887d4214 diff --git a/tools/racyopen_simple.c b/tools/racyopen_simple.c index e4d5c06..b70520a 100644 --- a/tools/racyopen_simple.c +++ b/tools/racyopen_simple.c @@ -14,11 +14,11 @@ int main(int argc, char *argv[]) { 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"); } }