First things first do you have code you can show us or some further information about what you are doing?

I was writing a program once to read from a FIFO created with mknod p filename. The writer was squid and the reader was a perl script doing manipulations with the data before doing some SQL updates. I found that the program writing to the pipe (Squid) died with SIGPIPE when the reader wasn't reading fast enough or there wasn't a reader at all. I basically had to modify the reader to be able to suck data out of the pipe as fast or faster then the program writing to the pipe since then I rewrote the reader to simplify the SQL it was performing so it handled the data even faster. _If_ I remeber properly the reader died to with SIGPIPE or EOF when there wasn't anything in the pipe. I have read you should always have more then one reader on a pipe. I can't remember where though.

I hope this is helpful in some way :-)

--blm--

In reply to Re: SIG PIPE by blm
in thread SIG PIPE by hotshot

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.