If an error occurs in a CGI script then does the rebol.exe CGI process stay open in the background?
If it does not, how? When rebol.exe started in CGI mode it terminates itself if an error occured?
posted by: Endo 18-May-2010/17:20:21-7:00
I'll try to find out the answer to that. In my shared host environment, the server limits the time any script is allowed to execute, quickly killing any long running process (they've never complained to me in 6+ years about any troublesome processes).
posted by: Nick 18-May-2010/18:26:14-7:00
It depends on the nature of the error.
Generally you want to ensure you end with a QUIT (rather than a HALT or a console error).
Easy way to make (almost!) certain of that is to:
1. ensure HALT can't happen by accident:
2. wrap all the code in an attempt:
attempt [--all the cgi code--]
A slightly more sophisticated version of that (2) is here:
posted by: Sunanda 18-May-2010/18:31:55-7:00
Thanks a lot.
posted by: Endo 19-May-2010/15:21:13-7:00
This answer was posted in AltME:
It self terminates. if you're running a script in a console, the error makes you drop back to the console. If you're running cgi, there is no console to drop back to ...
posted by: Nick 19-May-2010/23:34:57-7:00