in reply to IRC Stats
I don 't see where you've obtained and imported the setsid function. use POSIX 'setsid';
After Compline,Zaxo