in reply to How to exec in a separate thread?
Alternatively you might want to have a look at Proc::Daemon which might do just what you want