old/sysline/sysline.c
/*
 * clearbotl :: clear bottom line.
 * called when process quits or is killed.
 * it clears the bottom line of the terminal.
 */
clearbotl :: clear bottom line.
called when process quits or is killed.
it clears the bottom line of the terminal.
clearbotl :: clear bottom line . called when process quits or is killed . it clears the bottom line of the terminal .
void
clearbotl()
{
	register int fd;
	void sigexit();
	signal(SIGALRM, sigexit);
	alarm(30);	
	if (!emacs && (fd = open(ourtty, 1)) >= 0) {
		write(fd, dis_status_line, strlen(dis_status_line));
		close(fd);
	}
#ifdef PROF
	if (chdir(_PATH_SYSLINE) < 0)
		(void) chdir(_PATH_TMP);
#endif
	exit(0);
}
void clearbotl ( ) { register int fd ; void sigexit ( ) ; signal ( SIGALRM , sigexit ) ; alarm ( 30 ) ; if ( ! emacs && ( fd = open ( ourtty , 1 ) ) >= 0 ) { write ( fd , dis_status_line , strlen ( dis_status_line ) ) ; close ( fd ) ; } #ifdef PROF if ( chdir ( _PATH_SYSLINE ) < 0 ) ( void ) chdir ( _PATH_TMP ) ; #endif exit ( 0 ) ; }
clearbotl :: clear bottom line.
clearbotl :: clear bottom line .
/* if can't open in 30 secs, just die */