Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Best way to ensure process is live

by ajwans (Scribe)
on Mar 02, 2002 at 05:05 UTC ( [id://148774]=note: print w/replies, xml ) Need Help??


in reply to Best way to ensure process is live

The requirement of running the sub processes on different machines makes this a hard(TM) problem. If it was up to me, I would have the processes listening on more than one port with a different handler for the "control" port.

You would then need to connect this to a signal to ensure that you get a timely response from your control port and make your other processing reentrant so that interuptions (to handle control messages) do not disrupt normal processing.

Replies are listed 'Best First'.
Re: Re: Best way to ensure process is live
by Anonymous Monk on Mar 02, 2002 at 05:57 UTC
    Thanks, I'll investigate this idea...one followup question: what signal do I use? I am concerned that Win32 won't support it.
      Don't know about win32. Under *nix you could use the signals SIGUSR1 or SIGUSR2. These are there specifically for user definition.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2024-03-29 08:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found