Code: Select all
program xyz()
...
while (1)
...
sleep(10);
endwhile
endprogramHow it's handled the shutdown of a script like this? It is killed in the middle of the execution, or the core wait for the first pause in the script, for example a sleep(), and then shuts it down?
Is there a nice way to handle POL shutdown inside the script?