1 /* Copyright (c) 2015. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
13 #include <sys/signalfd.h>
14 #include <sys/types.h>
18 #include "mc_process.h"
22 #define MC_SERVER_ERROR 127
24 typedef struct s_mc_server s_mc_server_t, *mc_server_t;
26 extern mc_server_t mc_server;
28 void MC_server_wait_client(mc_process_t process);
29 void MC_server_simcall_handle(mc_process_t process, unsigned long pid, int value);
31 void MC_server_loop(mc_server_t server);
43 s_mc_server(pid_t pid, int socket);
47 void resume(mc_process_t process);
51 void handle_signals();
52 void handle_waitpid();
53 void on_signal(const struct signalfd_siginfo* info);