State reestablised when shell restarts. History of previous
[egate.git] / www / wsh.c
index 20213df..c6093f4 100644 (file)
--- a/www/wsh.c
+++ b/www/wsh.c
  * USE OR PERFORMANCE OF THIS SOFTWARE.
  *
  * $Log: wsh.c,v $
- * Revision 1.6  1995/11/06 10:51:19  adam
+ * Revision 1.7  1995/11/06 17:44:23  adam
+ * State reestablised when shell restarts. History of previous
+ * result sets.
+ *
+ * Revision 1.6  1995/11/06  10:51:19  adam
  * End of response marker in response from wsh/wproto to wcgi.
  * Shells are respawned when necessary.
  *
@@ -75,7 +79,7 @@
 #include "wtcl.h"
 #include "wirtcl.h"
 
-#define TIMEOUT_SHORT 120
+#define TIMEOUT_SHORT 60
 #define TIMEOUT_MEDIUM 1800
 #define TIMEOUT_LONG 7200
 
@@ -112,6 +116,7 @@ int main (int argc, char **argv)
                *argv);
         exit (1);
     }
+    w_interp_load_state (w_interp, NULL);
     while (wproto_process(wcl, timeout) > 0)
     {
         char *p;
@@ -162,6 +167,7 @@ int main (int argc, char **argv)
         }
        wo_finish(wcl);
     }
+    w_interp_save_state (w_interp, NULL);
     wproto_terminate(wcl);
     return 0;
 }