check for pthread_create() error
check for pthread_create() error

The manpage says:

    On success, pthread_create() returns 0; on error, it returns an
    error number, and the contents of *thread are undefined.

The error numbers (on Precise, Lucid, and Hardy) are all positive.  But,
in accordance with the manpage, non-zero signals failure.

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