Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Signals vs. Windows

by eyepopslikeamosquito (Archbishop)
on Oct 03, 2012 at 20:57 UTC ( [id://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.

Replies are listed 'Best First'.
Re^2: Signals vs. Windows
by DanEllison (Scribe) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://997132]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-19 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found