Changeset ccae2f in git
- Timestamp:
- Apr 10, 2013, 4:12:24 PM (11 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 58d429b7d8518126ff491afde71414bc067197ab
- Parents:
- 55cb6bd95ed2dc1ee1fe4d8f374124dfd3836e86
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-04-10 16:12:24+02:00
- git-committer:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-04-10 16:14:50+02:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/cntrlc.cc
r55cb6b rccae2f 415 415 #ifdef unix 416 416 # ifndef __OPTIMIZE__ 417 int si_stop_stack_trace_x;417 volatile int si_stop_stack_trace_x; 418 418 # ifdef CALL_GDB 419 419 static void debug (int method) … … 442 442 { 443 443 case INTERACTIVE: 444 fprintf (stderr, " debug_stop\n");444 fprintf (stderr, "\n\nquit with \"p si_stop_stack_trace_x=0\"\n\n\n"); 445 445 debug_stop (args); 446 446 break; 447 #ifndef __OPTIMIZE__448 447 case STACK_TRACE: 449 448 fprintf (stderr, "stack_trace\n"); 450 449 stack_trace (args); 451 450 break; 452 #endif453 451 default: 454 452 // should not be reached: … … 473 471 } 474 472 # endif /* CALL_GDB */ 475 476 static int stack_trace_done;477 473 478 474 static void stack_trace (char *const*args) … … 487 483 char buffer[256]; 488 484 char c; 489 490 stack_trace_done = 0;491 492 signal (SIGCHLD, stack_trace_sigchld);493 485 494 486 if ((pipe (in_fd) == -1) || (pipe (out_fd) == -1)) … … 564 556 } 565 557 } 566 else if (s tack_trace_done)558 else if (si_stop_stack_trace_x==0) 567 559 break; 568 560 } … … 573 565 si_close (out_fd[1]); 574 566 m2_end(0); 575 }576 577 static void stack_trace_sigchld (int /*signum*/)578 {579 stack_trace_done = 1;580 567 } 581 568
Note: See TracChangeset
for help on using the changeset viewer.