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.