in reply to fork process + SIG handlers

When you want to create a daemon, you should keep in mind a few things:
  1. redirect STDOUT, STDERR to a file or /dev/null
  2. redirect STDIN to /dev/null
  3. create a 'save' environment:
    change working directory to something save
    set your $ENV{PATH} to a save value
    set the umask to a save value

Paul