ERROR_BROKEN_PIPE is returned (test $^E) by the Win32 API when writing to a pipe where the reader died.
Man, win32 sucks...:(No, it is just different. A wise man once said to me: "All operating system stink, they just have different smells".
Signals are part of UNIX architechture. If you build an application which relies on a specific feature of an operating system then you cannot expect it to be portable. There are plenty of examples of Windows specific features that won't run on UNIX, but if you want portablity you have to avoid using them.
Win32 has a powerful event system which you might like to investigate. See
Win32::Event. And no, it is not portable.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.