-/* $Id: httpd.js,v 1.44 2005/07/09 11:10:14 mmondor Exp $ */
+/* $Id: httpd.js,v 1.45 2005/07/09 19:00:04 mmondor Exp $ */
/*
* Copyright (c) 2005, Matthew Mondor
return contents;
}
-eval(file_read('options.js')); /* Configuration */
+try {
+ eval(file_read('options.js')); /* Configuration */
+} catch (x) {
+ err.put(x + " while reading options file\n");
+ exit();
+}
eval(file_read('ml.js')); /* MLTag object for HTML generation */
eval(file_read('root.js')); /* Root object for virtual chroot(2) */
* Server identification
*/
SERVER_VERSION = 'mmondor_js_httpd/0.0.1 (NetBSD)';
-SERVER_CVSID = '$Id: httpd.js,v 1.44 2005/07/09 11:10:14 mmondor Exp $';
+SERVER_CVSID = '$Id: httpd.js,v 1.45 2005/07/09 19:00:04 mmondor Exp $';
this.process = process_query;
/* Initial input timeout */
this.updateTimeout(time);
- /* For bread()/process_request()/process_post() */
+ /* For process_request()/process_post() */
this.bread_buffer = '';
/* Set this socket non-blocking */