in reply to Daemon sub refuses to daemonize. Why?

It is working. Your computer's just too fast. Add in a sleep(10) after the become_daemon() call, and you'll be able to see it in your process list.

Or get really really really fast at hitting Enter. :)

The last option is to give it something to do after it becomes a daemon. Something besides falling off the end of the program, anyway.

  • Comment on Re: Daemon sub refuses to daemonize. Why?

Replies are listed 'Best First'.
Re: Re: Daemon sub refuses to daemonize. Why?
by BMaximus (Chaplain) on May 18, 2001 at 04:09 UTC
    Should have seen it. It's just ending with nothing to do so there's nothing to keep it around. Basic mistake. *looks sheepish*

    BMaximus