Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

HOW DO I GET OUT OF THIS SHIT

Name: Anonymous 2010-08-25 15:16



/* stuff happens here */

if (mpz_out_str(stdout, 10, counter) == 0) {
 mpz_clear(counter);
 // FUCKING FPRINT
 if (fprintf(stderr, "something failed\n") < 0) {
  if (fprintf(stderr, "something failed\n") < 0) {
   if (fprintf(stderr, "something failed\n") < 0) {
    if (fprintf(stderr, "something failed\n") < 0) {
     if (fprintf(stderr, "something failed\n") < 0) {
      if (fprintf(stderr, "something failed\n") < 0) {
       if (fprintf(stderr, "something failed\n") < 0) {
        if (fprintf(stderr, "something failed\n") < 0) {
         // WHAT THE FUCK?!
        }
       }
      }
     }
    }
   }
  }
 }
 return EXIT_FAILURE;
}

/* stuff happens here too */

Name: Anonymous 2010-08-27 2:53

>>14
It looks ok to me...  fork() returns a PID, and the loop will only exit for the one case where PID = 0, which is probably reserved on just about every OS.  So it just infinitely spawns processes that infinitely spawn processes...

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List