[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev 2.8.1pre2 patch to store cookies at quit
From: |
brian j. pardy |
Subject: |
lynx-dev 2.8.1pre2 patch to store cookies at quit |
Date: |
Fri, 25 Sep 1998 19:11:22 -0700 |
This moves Lynx's writing of persistent cookies to COOKIE_FILE from
happening when you enter the Cookie Jar page to quit time, before cleaning
up temp files.
diff -cr 2.8.1pre.2/src/LYClean.c 2.8.1pre.2.bri/src/LYClean.c
*** 2.8.1pre.2/src/LYClean.c Thu Aug 6 05:28:22 1998
--- 2.8.1pre.2.bri/src/LYClean.c Fri Sep 25 18:59:47 1998
***************
*** 7,12 ****
--- 7,13 ----
#include <LYGlobalDefs.h>
#include <LYStrings.h>
#include <LYTraversal.h>
+ #include <LYCookie.h>
#include <UCAuto.h>
#include <LYexit.h>
***************
*** 177,182 ****
--- 178,194 ----
UCChangeTerminalCodepage(-1, (LYUCcharset*)0);
#endif /* LINUX */
#endif /* EXP_CHARTRANS_AUTOSWITCH */
+
+ #ifdef EXP_PERSISTENT_COOKIES
+ /*
+ * This can go right here for now. We need to work up a better place
+ * to save cookies for the next release, preferably whenever a new
+ * persistent cookie is received or used. Some sort of protocol to
+ * handle two processes writing to the cookie file needs to be worked
+ * out as well.
+ */
+ LYStoreCookies (LYCookieFile);
+ #endif
cleanup_files();
for (i = 0; i < nhist; i++) {
diff -cr 2.8.1pre.2/src/LYCookie.c 2.8.1pre.2.bri/src/LYCookie.c
*** 2.8.1pre.2/src/LYCookie.c Thu Sep 17 03:43:48 1998
--- 2.8.1pre.2.bri/src/LYCookie.c Fri Sep 25 19:01:04 1998
***************
*** 1923,1929 ****
}
/* rjp - experimental persistent cookie support */
! PRIVATE void LYStoreCookies ARGS1 (
CONST char *, cookie_file)
{
char buf[1024];
--- 1936,1942 ----
}
/* rjp - experimental persistent cookie support */
! PUBLIC void LYStoreCookies ARGS1 (
CONST char *, cookie_file)
{
char buf[1024];
***************
*** 2028,2038 ****
#ifdef VMS
extern BOOLEAN HadVMSInterrupt;
#endif /* VMS */
-
- #ifdef EXP_PERSISTENT_COOKIES
- /* rjp - this can go here for now */
- LYStoreCookies (LYCookieFile);
- #endif
/*
* Check whether we have something to do. - FM
--- 2041,2046 ----
--
Any two philosophers can tell each other all they know in two hours.
-- Oliver Wendell Holmes, Jr.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- lynx-dev 2.8.1pre2 patch to store cookies at quit,
brian j. pardy <=