- if (lastone == 0 || gras_os_time() - lastone > 5) {
- lastone = gras_os_time();
- xbt_backtrace_display();
- fprintf(stderr,"\nBacktrace displayed because Ctrl-C was pressed. Press again (within 5 sec) to abort the process.\n");
+ if (lastone == 0 || xbt_os_time() - lastone > 5) {
+ xbt_backtrace_display_current();
+ fprintf(stderr,
+ "\nBacktrace displayed because Ctrl-C was pressed. Press again (within 5 sec) to abort the process.\n");
+ lastone = xbt_os_time();