You people are great and solved my first problem in a hurry--THANKS!

Now I'd like to see if there is a way for one of my processes to interrupt another. I envision sending a signal from one server-type process to a client-type process. The client would abort current processing upon receiving the signal, read a bunch of stuff from a Win32::Pipe, and then start its processing again.

Since I'm running under Windows, I'm very leary of using SIG or anything that expects a UNIX OS. If I shouldn't be, just let me know, but my investigation into named pipes (solved with Win32::Pipe) suggests that I'm properly concerned.

The biggest trick seems to be that I don't want the client to be reentrant. I want to interrupt the client and never return to the position at which the client was running (figuratively issue a GOTO type of command).

Here is the application (basically)...my primary process is managing a fantasy football draft, my secondary process searches for a trade that might be beneficial to me. Since there are many trade possibilities, I want to investigate as many as it can. Unfortunately, the whole structure changes each time someone makes a draft pick. Thus I want to interrupt the secondary process wheneve a pick is made, send information about the pick selected over, and then tell the secondary process to start looking for a new potential trade. Fun, huh?


In reply to Sending and Catching Signals/Interrupts by bfish

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.