Article View: news.software.readers
Article #28291Re: SLRN & VMS (again)
From: John E. Davis
Date: Tue, 10 Dec 1996 00:00
Date: Tue, 10 Dec 1996 00:00
60 lines
2088 bytes
2088 bytes
What TCP/IP implementation are you using? NETLIB? MULTINET?
About all I can think of is that slrn_exit_error is getting called
recursively when using VMS (e.g., by the cancel_read function in
clientlib.c. Hmmm... it appears that the cancel_read function should
not call slrn_exit_error at all; rather, it should call slrn_error and
simply return back to its caller. So, in clientlib.c, change the
cancel_read function to call slrn_error instead.)
To avoid the possibility or of slrn_exit_error being called
recursively, in slrn.c, replace slrn_exit_error by the following
TWO functions:
static void perform_cleanup (void)
{
if (Slrn_Groups_Dirty)
slrn_write_newsrc ();
if (Slrn_Server_Obj != NULL)
Slrn_Server_Obj->sv_close ();
#if SLRN_HAS_GROUPLENS
slrn_close_grouplens ();
#endif
lock_file (0);
}
void slrn_exit_error (char *fmt, ...)
{
va_list ap;
static int trying_to_exit;
if (trying_to_exit == 0)
{
trying_to_exit = 1;
slrn_set_display_state (0);
perform_cleanup ();
}
if (fmt != NULL)
{
fprintf (stderr, "slrn fatal error:\n");
va_start (ap, fmt);
vfprintf (stderr, fmt, ap);
va_end(ap);
}
putc ('\n', stderr);
exit (1);
}
--
John E. Davis Center for Space Research/AXAF Science Center
617-258-8119 MIT 37-662c, Cambridge, MA 02139
http://space.mit.edu/~davis
Technical Details
Message-ID:
<slrn5ari7v.r4g.davis@aluche.mit.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn5abrvk.vht.brennan@crashprone.allegheny.edu>Show Full Headers
Complete Article Headers
Message-ID: <slrn5ari7v.r4g.davis@aluche.mit.edu> Subject: Re: SLRN & VMS (again) Date: Tue, 10 Dec 1996 00:00:00 +0000 From: davis@space.mit.edu (John E. Davis) References: <slrn5abrvk.vht.brennan@crashprone.allegheny.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 203373334 Organization: Center for Space Research Reply-to: davis@space.mit.edu Newsgroups: news.software.readers,comp.os.vms