feedback-arc-set/supervisor.c
2018-05-21 15:41:48 +02:00

45 lines
623 B
C

/**
* @file supervisor.c
* @date 2018-05-21
*
* @brief Server program which reads solutions and orders them.
*/
#include "common.h"
static const char *pname;
struct sigaction sa;
static volatile sig_atomic_t quit = 0;
static void sig_handler(int signum)
{
quit = 1;
}
void usage(void)
{
fprintf(stderr, "SYNOPSIS\n"
"\tsupervisor\n");
exit(EXIT_FAILURE);
}
int main(int argc, char *argv[])
{
if (argc != 1)
usage();
struct sigaction sa;
memset(&sa, 0, sizeof(sa));
sa.sa_handler = &sig_handler;
sigaction(SIGINT, &sa, NULL);
sigaction(SIGTERM, &sa, NULL);
while (quit == 0) {
}
return 0;
}