I was wondering how someone can specify an exit code when shutting a XULRunner application.
I currently use nsIAppStartup.quit()
described in MDC nsIAppStartup reference to shutdown the application, but I can't figure out how to specify a process exit code.
The application is launched from a shell script and this exit code is needed to decide if it should be restarted or not.
NOTE : Passing eRestart
to the quit
function is useless in my situation because restarting depends on factors external to the application (system limits etc.)
Thank you and any help would be appreciated.