X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=kernel%2Fmain.c;h=f1f1694fefb88a82df69c0d0ce0e84d1604303ef;hb=373495ef158d123d95ab44465d4249e65847492b;hp=5c73fffef3233c39913da666f8f7b361b3616a8a;hpb=5fbbd5cdbe4218474ecdef85ad12814678ca18bd;p=egate.git diff --git a/kernel/main.c b/kernel/main.c index 5c73fff..f1f1694 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -45,7 +45,15 @@ * Europagate, 1995 * * $Log: main.c,v $ - * Revision 1.28 1995/07/03 08:20:15 adam + * Revision 1.30 1996/02/12 10:04:54 adam + * The gateway doesn't try to reconnect if it is already known that + * it will fail (connect_fail flag introduced). + * + * Revision 1.29 1995/07/28 10:51:08 adam + * Bug fix: account from previous session had effect when new target command + * was executed. + * + * Revision 1.28 1995/07/03 08:20:15 adam * More help information and better diagnostics. * * Revision 1.27 1995/05/19 13:25:59 adam @@ -271,6 +279,7 @@ int main (int argc, char **argv) info.override_res = NULL; *info.target = 0; *info.account = 0; + info.account_in_session = 1; info.lang = NULL; info.bibset = NULL; info.zass = NULL; @@ -280,6 +289,7 @@ int main (int argc, char **argv) info.database = NULL; info.setno = -1; info.userid = -1; + info.connect_failed = 0; #if USE_FML info.fml = NULL; #endif @@ -613,6 +623,7 @@ void read_kernel_res (void) sizeof(info.hostname)-1); info.port = gw_res_int (info.kernel_res, "gw.portno", 210); strcpy (info.account, gw_res_get (info.kernel_res, "gw.account", "")); + info.account_in_session = 0; } /* set info.databases (all available databases for target) */ /* set info.database (first database for target) */