Hi, thank you

You were absolutely right.. that does work just like you said.

Here's an element of the puzzle that I left out, and this is where I was getting caught.. this entire thing is running through xinetd. And even though the parent was dieing off, the child still was keeping the standard file discriptors open. As a result, my client that was waiting for an EOF on the socket was never getting it. DOH!

So when I took what I learned from here and the example code and then applied it directly into the real code it worked perfectly as soon as I let my child run Proc::Daemon::Init, which closed the file handles for me.

Thank you everybody for helping me figgure this one out!


In reply to Re: Re: Re: Re: Starting a process in the background that lives after perl dies. by ehdonhon
in thread Starting a process in the background that lives after perl dies. by ehdonhon

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.