fprintf(stderr
, "PAUSE ");
fprintf(stderr
, " statement executed\n");
if( isatty(fileno(stdin
)) )
fprintf(stderr
, "To resume execution, type go. Any other input will terminate job.\n");
if( getchar()!='g' || getchar()!='o' || getchar()!='\n' )
fprintf(stderr
, "STOP\n");
fprintf(stderr
, "To resume execution, execute a kill -%d %d command\n",
signal(PAUSESIG
, waitpause
);
fprintf(stderr
, "Execution resumes after PAUSE.\n");