old/more/more.c
/*
** Come here if a quit signal is received
*/
Come here if a quit signal is received
Come here if a quit signal is received
void
onquit()
{
    signal(SIGQUIT, SIG_IGN);
    if (!inwait) {
	putchar ('\n');
	if (!startup) {
	    signal(SIGQUIT, onquit);
	    longjmp (restore, 1);
	}
	else
	    Pause++;
    }
    else if (!dum_opt && notell) {
	write (2, "[Use q or Q to quit]", 20);
	promptlen += 20;
	notell = 0;
    }
    signal(SIGQUIT, onquit);
}
void onquit ( ) { signal ( SIGQUIT , SIG_IGN ) ; if ( ! inwait ) { putchar ( ' \n ' ) ; if ( ! startup ) { signal ( SIGQUIT , onquit ) ; longjmp ( restore , 1 ) ; } else Pause ++ ; } else if ( ! dum_opt && notell ) { write ( 2 , " " , 20 ) ; promptlen += 20 ; notell = 0 ; } signal ( SIGQUIT , onquit ) ; }
Come here if a quit signal is received
Come here if a quit signal is received