set the task->state before suspending, in case the current task is the one being suspended.  restore old state if it fails.
set the task->state before suspending, in case the current task is the one
being suspended.  restore old state if it fails.

print a message for one cause of failure rtapi_task_start

unseenlaser/linuxcnc,bmwiedemann/linuxcnc-mirror,jaguarcat79/ILC-with-LinuxCNC,RunningLight/machinekit,RunningLight/machinekit,cnc-club/linuxcnc,ArcEye/MK-Qt5,cdsteinkuehler/MachineKit,strahlex/machinekit,mhaberler/machinekit,cdsteinkuehler/linuxcnc,bobvanderlinden/machinekit,narogon/linuxcnc,aschiffler/linuxcnc,jaguarcat79/ILC-with-LinuxCNC,unseenlaser/machinekit,EqAfrica/machinekit,araisrobo/machinekit,ArcEye/machinekit-testing,bobvanderlinden/machinekit,araisrobo/machinekit,EqAfrica/machinekit,araisrobo/machinekit,unseenlaser/machinekit,unseenlaser/machinekit,ArcEye/machinekit-testing,bobvanderlinden/machinekit,EqAfrica/machinekit,kinsamanka/machinekit,Cid427/machinekit,mhaberler/machinekit,Cid427/machinekit,narogon/linuxcnc,araisrobo/machinekit,mhaberler/machinekit,cnc-club/linuxcnc,RunningLight/machinekit,kinsamanka/machinekit,unseenlaser/machinekit,araisrobo/linuxcnc,cdsteinkuehler/MachineKit,cdsteinkuehler/linuxcnc,kinsamanka/machinekit,EqAfrica/machinekit,araisrobo/linuxcnc,ikcalB/linuxcnc-mirror,ArcEye/machinekit-testing,cdsteinkuehler/linuxcnc,unseenlaser/linuxcnc,bmwiedemann/linuxcnc-mirror,mhaberler/machinekit,ArcEye/machinekit-testing,unseenlaser/machinekit,ianmcmahon/linuxcnc-mirror,araisrobo/linuxcnc,kinsamanka/machinekit,cdsteinkuehler/MachineKit,strahlex/machinekit,ianmcmahon/linuxcnc-mirror,jaguarcat79/ILC-with-LinuxCNC,mhaberler/machinekit,bobvanderlinden/machinekit,narogon/linuxcnc,kinsamanka/machinekit,EqAfrica/machinekit,ikcalB/linuxcnc-mirror,ianmcmahon/linuxcnc-mirror,ianmcmahon/linuxcnc-mirror,EqAfrica/machinekit,bobvanderlinden/machinekit,ikcalB/linuxcnc-mirror,bmwiedemann/linuxcnc-mirror,ArcEye/MK-Qt5,unseenlaser/linuxcnc,aschiffler/linuxcnc,jaguarcat79/ILC-with-LinuxCNC,unseenlaser/linuxcnc,araisrobo/machinekit,RunningLight/machinekit,cnc-club/linuxcnc,Cid427/machinekit,araisrobo/machinekit,strahlex/machinekit,Cid427/machinekit,cnc-club/linuxcnc,bmwiedemann/linuxcnc-mirror,narogon/linuxcnc,RunningLight/machinekit,unseenlaser/machinekit,mhaberler/machinekit,unseenlaser/machinekit,EqAfrica/machinekit,ArcEye/MK-Qt5,yishinli/emc2,RunningLight/machinekit,ikcalB/linuxcnc-mirror,ArcEye/MK-Qt5,cnc-club/linuxcnc,araisrobo/linuxcnc,RunningLight/machinekit,araisrobo/linuxcnc,bobvanderlinden/machinekit,strahlex/machinekit,ArcEye/machinekit-testing,narogon/linuxcnc,aschiffler/linuxcnc,Cid427/machinekit,mhaberler/machinekit,yishinli/emc2,cdsteinkuehler/linuxcnc,ikcalB/linuxcnc-mirror,cnc-club/linuxcnc,Cid427/machinekit,ikcalB/linuxcnc-mirror,araisrobo/machinekit,ArcEye/MK-Qt5,cdsteinkuehler/MachineKit,cnc-club/linuxcnc,ianmcmahon/linuxcnc-mirror,ArcEye/MK-Qt5,ianmcmahon/linuxcnc-mirror,cdsteinkuehler/MachineKit,aschiffler/linuxcnc,Cid427/machinekit,bmwiedemann/linuxcnc-mirror,kinsamanka/machinekit,cdsteinkuehler/linuxcnc,bobvanderlinden/machinekit,kinsamanka/machinekit,yishinli/emc2,RunningLight/machinekit,strahlex/machinekit,araisrobo/machinekit,ArcEye/MK-Qt5,ArcEye/machinekit-testing,unseenlaser/linuxcnc,aschiffler/linuxcnc,araisrobo/machinekit,jaguarcat79/ILC-with-LinuxCNC,strahlex/machinekit,bmwiedemann/linuxcnc-mirror,ArcEye/MK-Qt5,bmwiedemann/linuxcnc-mirror,ikcalB/linuxcnc-mirror,cdsteinkuehler/MachineKit,strahlex/machinekit,kinsamanka/machinekit,ianmcmahon/linuxcnc-mirror,Cid427/machinekit,ArcEye/machinekit-testing,mhaberler/machinekit,unseenlaser/machinekit,yishinli/emc2,ArcEye/machinekit-testing,EqAfrica/machinekit,bobvanderlinden/machinekit,cdsteinkuehler/linuxcnc