static void gras_sigint_handler(int sig) {
static double lastone = 0;
if (lastone == 0 || xbt_os_time() - lastone > 5) {
static void gras_sigint_handler(int sig) {
static double lastone = 0;
if (lastone == 0 || xbt_os_time() - lastone > 5) {
*/
if (gras_running_process == 0) {
/* Connect our log channels: that must be done manually under windows */
*/
if (gras_running_process == 0) {
/* Connect our log channels: that must be done manually under windows */
XBT_LOG_CONNECT(gras_ddt_exchange, gras_ddt);
XBT_LOG_CONNECT(gras_ddt_lexer, gras_ddt_parse);
XBT_LOG_CONNECT(gras_ddt_parse, gras_ddt);
XBT_LOG_CONNECT(gras_ddt_exchange, gras_ddt);
XBT_LOG_CONNECT(gras_ddt_lexer, gras_ddt_parse);
XBT_LOG_CONNECT(gras_ddt_parse, gras_ddt);
XBT_LOG_CONNECT(gras_msg, gras);
XBT_LOG_CONNECT(gras_msg_read, gras_msg);
XBT_LOG_CONNECT(gras_msg_rpc, gras_msg);
XBT_LOG_CONNECT(gras_msg, gras);
XBT_LOG_CONNECT(gras_msg_read, gras_msg);
XBT_LOG_CONNECT(gras_msg_rpc, gras_msg);
XBT_LOG_CONNECT(gras_trp, gras);
XBT_LOG_CONNECT(gras_trp_meas, gras_trp);
XBT_LOG_CONNECT(gras_trp, gras);
XBT_LOG_CONNECT(gras_trp_meas, gras_trp);
XBT_LOG_CONNECT(gras_virtu, gras);
XBT_LOG_CONNECT(gras_virtu_emul, gras_virtu);
XBT_LOG_CONNECT(gras_virtu_process, gras_virtu);
XBT_LOG_CONNECT(gras_virtu, gras);
XBT_LOG_CONNECT(gras_virtu_emul, gras_virtu);
XBT_LOG_CONNECT(gras_virtu_process, gras_virtu);
/*
* Initialize the process specific stuff
*/
gras_process_init(); /* calls procdata_init, which creates process specific data for each module */
/*
* Initialize the process specific stuff
*/
gras_process_init(); /* calls procdata_init, which creates process specific data for each module */
signal(SIGUSR1,gras_sigusr_handler);
# endif
signal(SIGINT,gras_sigint_handler);
signal(SIGUSR1,gras_sigusr_handler);
# endif
signal(SIGINT,gras_sigint_handler);
/* And finally, launch the listener thread */
pd = gras_procdata_get();
msg_pd = gras_libdata_by_name("gras_msg");
/* And finally, launch the listener thread */
pd = gras_procdata_get();
msg_pd = gras_libdata_by_name("gras_msg");