X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=www%2Fwirtcl.c;h=76e169033da2fab055e6ba4b1dd072b1e05fb921;hb=ef79fc045cbd835d4cd023186fe3a3bd918d13d7;hp=6425be9dc59c1ebae5251d6e3143f6429a4834e8;hpb=8bafbc608e1ffba9ee87f4856e586dffa57901b8;p=egate.git diff --git a/www/wirtcl.c b/www/wirtcl.c index 6425be9..76e1690 100644 --- a/www/wirtcl.c +++ b/www/wirtcl.c @@ -41,7 +41,11 @@ * USE OR PERFORMANCE OF THIS SOFTWARE. * * $Log: wirtcl.c,v $ - * Revision 1.16 1996/02/29 15:40:23 adam + * Revision 1.17 1996/03/15 14:43:26 adam + * Function egw_wait returns 'cancel' if new request is pending (user + * has cancelled); or egw_wait returns 'timeout' on timeout. + * + * Revision 1.16 1996/02/29 15:40:23 adam * New function w_interp_irtcl_get that returns Tcl interpreter of * IrTcl interpreter. * @@ -290,12 +294,14 @@ static int events (struct tcl_info *p, char *waitVar, int tout) if (!r) { gw_log (GW_LOG_DEBUG, mod, "timeout"); + p->interp->result = "timeout"; free (waitVarVal); return TCL_ERROR; } if (FD_ISSET (fifo_in, &fdset_tcl_r)) { gw_log (GW_LOG_DEBUG, mod, "FIFO closed"); + p->interp->result = "cancel"; free (waitVarVal); return TCL_ERROR; }