If you run a script in a the background with
exec, things go nasty after a while
when you
kill your terminal. You can prevent this (I tried
it only under linux) by setting
SIG{INT}='IGNORE'.
Actually, a better solution is the Proc::daemon
module, or the Net::daemon module if you need to
claim a socket.
Originally posted as a Categorized Answer.
Comment on Re: How do I run a script in the background? How should I run a script as daemon?