in reply to Re^3: threads and Net::OpenSSH
in thread threads and Net::OpenSSH

Oh zentara. How many times(*) do I have to explain it. (*there are many, many previous occasions if anyone cares to do the search.)

This will not work if the thread is in a blocking IO read state. Ie. The OPs problem.

Hell. You even meditated on it!

You're not related to sundialsvc4 are you?


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?

Replies are listed 'Best First'.
Re^5: threads and Net::OpenSSH
by zentara (Cardinal) on Mar 21, 2012 at 20:12 UTC

      The "zen" in zentara shines!


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

      The start of some sanity?

        Actually, I discovered that for my purposes, what I needed was not so much "killing" a thread, as simply sending it a signal to end, which I did with Thread::Queue, with no troubles.

        Thanks for all the good info though.