- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there anyway to trap ctrl-C, so that a fortran program exits cleanly?
I tried doing a
RESULT = SIGNAL(2,FINISH,-1)
Where Finish is a function that calls Stop.
But it still hardcrashes with the
forrtl: error (69): process interrupted (SIGINT)
I tried doing a
RESULT = SIGNAL(2,FINISH,-1)
Where Finish is a function that calls Stop.
But it still hardcrashes with the
forrtl: error (69): process interrupted (SIGINT)
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why is it that you have to force your program to quit?
I'm not so sure there is a way to do what you are trying. If it's on *nix you could redirect stderr maybe or something equally as crude.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page