X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=www%2Fwsh.c;h=c6093f40ba58fd370f0e75415b23feb859d3b7a7;hb=94e0e8ff10cdb5142f983cd76156310461f9eb89;hp=20213df5aacac24d446c65488e128ac0574dd8ba;hpb=71b5b2cf0d923cf64e9353c9250bd2912e446e0a;p=egate.git diff --git a/www/wsh.c b/www/wsh.c index 20213df..c6093f4 100644 --- a/www/wsh.c +++ b/www/wsh.c @@ -41,7 +41,11 @@ * 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; }