Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Signals vs. Windows

by eyepopslikeamosquito (Canon)
on Oct 03, 2012 at 20:57 UTC ( #997132=note: print w/ replies, xml ) Need Help??


in reply to Signals vs. Windows

If the child thread doesn't complete within some time limit, the parent sends the child a signal, and the child in turn attempts to kill the external process.
If this is Windows-only code, and the intent is to run an external command with a time limit, I suggest you take a look at the Win32::Job module. For a simple example of using it, see Re: Timing Windows commands.

Since signals don't play nicely with threads generally and since signals are not part of the native Win32 API, I would stay away from signals for your application.


Comment on Re: Signals vs. Windows
Re^2: Signals vs. Windows
by DanEllison (Sexton) on Oct 04, 2012 at 11:15 UTC
    No, this is not Windows only.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997132]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (12)
As of 2014-10-31 14:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (217 votes), past polls