in reply to Application just dies

Okay here's another one. After the loop I put in a line to print to the browser. Just an ole print "Made it here"; exit(0);. Nothing prints to the screen and the browser finishes loading, like before. I put in an open file and write to it and then after that I open the file at key points, write to it a specific string to say it had been there (concatenated), and then I close the file. When I go in and look at the file generated it shows me it reached the point of where I put the print and exit. What the heck would be causing this to happen? It looks as though the program does reach that point but no feedback is coming back from the web server. Not much good considering it's a CGI application. Any help would be greatly appreciated.

Replies are listed 'Best First'.
Re^2: Application just dies
by almut (Canon) on Feb 27, 2009 at 21:39 UTC

    When what you describe is correct, it looks as if your webserver (or something from webserver to browser (proxy?)) is having buffering issues. (BTW, do you declare your content as text/plain?)

    What happens if you run the CGI program from the commandline (if that's possible)? Is your "Made it here" missing, too, then, from stdout output?