pietrocomin
Programmer
Trapping the interrupt (^C) fails if the signal is received during an I/O, i.e. I can jump to the desired location of a program but then I cannot perform any other I/O but that passing through an emergency call system ....
What I need is a system call clearing the pending I/O - excuse me, but I do not know how to format the page
C1234x
EXTERNAL TRAP
CALL SIGNAL (2,TRAP)
WRITE (6,*) 'press control-C'
READ (5,*) I
STOP
END
SUBROUTINE TRAP
CALL SYSTEM ('echo this is printed')
C I need a system call here
WRITE (6,*) 'but this not'
STOP
END
~
What I need is a system call clearing the pending I/O - excuse me, but I do not know how to format the page
C1234x
EXTERNAL TRAP
CALL SIGNAL (2,TRAP)
WRITE (6,*) 'press control-C'
READ (5,*) I
STOP
END
SUBROUTINE TRAP
CALL SYSTEM ('echo this is printed')
C I need a system call here
WRITE (6,*) 'but this not'
STOP
END
~