master/master.c
changeset 529 fdd5cc30441b
parent 528 f789bdd78b54
child 533 acdd1f9ef7ab
equal deleted inserted replaced
528:f789bdd78b54 529:fdd5cc30441b
   808 static int ec_master_thread(void *data)
   808 static int ec_master_thread(void *data)
   809 {
   809 {
   810     ec_master_t *master = (ec_master_t *) data;
   810     ec_master_t *master = (ec_master_t *) data;
   811     cycles_t cycles_start, cycles_end;
   811     cycles_t cycles_start, cycles_end;
   812 
   812 
   813     daemonize("EtherCAT2");
   813     daemonize("EtherCAT");
   814     allow_signal(SIGTERM);
   814     allow_signal(SIGTERM);
   815 
   815 
   816     while (!signal_pending(current) && master->mode == EC_MASTER_MODE_IDLE) {
   816     while (!signal_pending(current) && master->mode == EC_MASTER_MODE_IDLE) {
   817         cycles_start = get_cycles();
   817         cycles_start = get_cycles();
   818 
   818