LYStoreCookies (LYCookieFile);
LYStoreCookies (LYCookieSaveFile);
PUBLIC void cleanup NOARGS{    int i;#ifdef VMS    extern BOOLEAN DidCleanup;#endif /* VMS */    /*     *	Cleanup signals - just in case.     *	Ignore further interrupts. - mhc: 11/2/91     */#ifndef NOSIGHUP    (void) signal(SIGHUP, SIG_IGN);#endif /* NOSIGHUP */    (void) signal (SIGTERM, SIG_IGN);#ifndef VMS  /* use ttclose() from cleanup() for VMS */    (void) signal (SIGINT, SIG_IGN);#endif /* !VMS */    if (LYCursesON) {	move(LYlines-1, 0);	clrtoeol();	lynx_stop_all_colors ();	refresh();	stop_curses();    }#ifdef EXP_CHARTRANS_AUTOSWITCH#ifdef LINUX    /*     *	Currently implemented only for LINUX: Restore original font.     */    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.     */    if (persistent_cookies)	LYStoreCookies (LYCookieFile);#endif    cleanup_files();    for (i = 0; i < nhist; i++) {	FREE(history[i].title);	FREE(history[i].address);	FREE(history[i].post_data);	FREE(history[i].post_content_type);	FREE(history[i].bookmark);    }    nhist = 0;#ifdef VMS    ttclose();    DidCleanup = TRUE;#endif /* VMS */    LYCloseTracelog();}