Changeset 659a7a in git for Singular/cntrlc.cc
- Timestamp:
- Nov 5, 2013, 12:50:56 PM (10 years ago)
- Branches:
- (u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
- Children:
- d600e1863951bfc5135d0138b61badb20b1ec70a
- Parents:
- 8c982c34545a8ef6ec86afcbb224757c7dffcd0f
- git-author:
- Andreas Steenpass <steenpass@mathematik.uni-kl.de>2013-11-05 12:50:56+01:00
- git-committer:
- Andreas Steenpass <steenpass@mathematik.uni-kl.de>2013-11-06 13:20:27+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/cntrlc.cc
r8c982c3 r659a7a 30 30 #include <Singular/cntrlc.h> 31 31 #include <Singular/feOpt.h> 32 #include <Singular/misc_ip.h> 32 33 #include <Singular/si_signals.h> 33 34 #include <Singular/links/silink.h> … … 88 89 } 89 90 91 volatile BOOLEAN do_shutdown = FALSE; 92 volatile int defer_shutdown = 0; 93 90 94 void sig_term_hdl(int /*sig*/) 91 95 { 92 if (ssiToBeClosed_inactive) 93 { 94 ssiToBeClosed_inactive=FALSE; 95 while (ssiToBeClosed!=NULL) 96 { 97 slClose(ssiToBeClosed->l); 98 if (ssiToBeClosed==NULL) break; 99 ssiToBeClosed=(link_list)ssiToBeClosed->next; 100 } 101 exit(1); 102 } 103 //else: we already shutting down: let's do m2_end ist work 96 do_shutdown = TRUE; 97 if (!defer_shutdown) 98 { 99 m2_end(1); 100 } 104 101 } 105 102
Note: See TracChangeset
for help on using the changeset viewer.