Hi all,
I am trying to capture the signal error handling such as Ctrl-C.
I tried the signal function available in PGI fortran. But I am not able to make it to work. Here is a small test code.
Program Test
Integer(4) iretw
Integer(4) flag
External Procedure
flag = 0
Do While(.true.)
iretw = Signal(SIGINT, Procedure, -1)
End Do
Stop
End
Subroutine Procedure(iretw)
Write(,) ‘Closing Programs’
Pause
Return
End
Please let me know if i need to add any include file for handling error handlers. I am assuming SIGINT is available in one of the include files.
Thanks
Venkat