sleep(AlertSecs);
LYSleepAlert();
PUBLIC void LYexit ARGS1(	int,		status){#ifndef VMS	/*  On VMS, the VMSexit() handler does these. - FM */#ifdef _WINDOWS    WSACleanup();#endif    if (LYOutOfMemory == TRUE) {	/*	 *  Ignore further interrupts. - FM	 */#ifndef NOSIGHUP	(void) signal(SIGHUP, SIG_IGN);#endif /* NOSIGHUP */	(void) signal (SIGTERM, SIG_IGN);	(void) signal (SIGINT, SIG_IGN);#ifndef __linux__#ifndef DOSPATH	(void) signal(SIGBUS, SIG_IGN);#endif /* DOSPATH */#endif /* !__linux__ */	(void) signal(SIGSEGV, SIG_IGN);	(void) signal(SIGILL, SIG_IGN);	 /*	  *  Flush all messages. - FM	  */	 fflush(stderr);	 fflush(stdout);	/*	 *  Deal with curses, if on, and clean up. - FM	 */	if (LYCursesON) {	    sleep(AlertSecs);	}	cleanup_sig(0);#ifndef __linux__#ifndef DOSPATH	signal(SIGBUS, SIG_DFL);#endif /* DOSPATH */#endif /* !__linux__ */	signal(SIGSEGV, SIG_DFL);	signal(SIGILL, SIG_DFL);    }#endif /* !VMS */    /*     *	Do functions registered with LYatexit. - GAB     */    LYCompleteExit();#ifndef VMS#ifdef SYSLOG_REQUESTED_URLS    syslog(LOG_INFO, "Session over");    closelog();#endif /* SYSLOG_REQUESTED_URLS */#endif /* !VMS */#ifdef exit/*  Make sure we use stdlib exit and not LYexit. - GAB*/#undef exit#endif /* exit */#ifndef VMS	/*  On VMS, the VMSexit() handler does these. - FM */    fflush(stderr);    if (LYOutOfMemory == TRUE) {	LYOutOfMemory = FALSE;	printf("\r\n%s\r\n\r\n", MEMORY_EXHAUSTED_ABORT);	fflush(stdout);    }    LYCloseTracelog();#endif /* !VMS */    exit(status);}