--- a/targets/Xenomai/plc_Xenomai_main.c Mon Mar 05 12:02:20 2012 +0100 +++ b/targets/Xenomai/plc_Xenomai_main.c Tue Mar 06 22:42:56 2012 +0100 @@ -75,7 +75,7 @@ { PLC_SetTimer(Ttick, Ttick); - while (1) { + while (!PLC_shutdown) { PLC_GetTime(&__CURRENT_TIME); __run(); if (PLC_shutdown) break;