* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
* @(#)s_paus.c 5.1 6/7/85
fprintf(stderr
, "PAUSE: ");
if( isatty(fileno(stdin
)) )
fprintf(stderr
, "To resume execution, type: go\nAny other input will terminate the program.\n");
if( getchar()!='g' || getchar()!='o' || getchar()!='\n' )
fprintf(stderr
, "STOP\n");
fprintf(stderr
, "To resume execution, type: kill -%d %d\n",
signal(PAUSESIG
, waitpause
);
fprintf(stderr
, "Execution resumed after PAUSE.\n");