-/* Copyright (c) 2015. The SimGrid Team.
+ /* Copyright (c) 2015. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_main, mc, "Entry point for simgrid-mc");
-static const bool trace = true;
-
static int do_child(int socket, char** argv)
{
XBT_DEBUG("Inside the child process PID=%i", (int) getpid());
mc_mode = MC_MODE_SERVER;
mc_server = new s_mc_server(child, socket);
mc_server->start();
- MC_init_pid(child, socket);
+ MC_init_model_checker(child, socket);
if (_sg_mc_comms_determinism || _sg_mc_send_determinism)
MC_modelcheck_comm_determinism();
else if (!_sg_mc_property_file || _sg_mc_property_file[0] == '\0')
mc_server->exit();
}
catch(std::exception& e) {
- XBT_ERROR(e.what());
+ XBT_ERROR("Exception: %s", e.what());
}
exit(MC_SERVER_ERROR);
}