Re: How to synchronize apps running?



On Thu, 18 Oct 2007 07:47:24 -0700, masterwally@xxxxxxxxx wrote:
And, before the first application is able to start and open sockets,
the second one runs, tries to connect, fails and exits. I don't have
any influence on that, I can only modify sources of the first
application and the "master" one. Do you have some ideas on a nice
way how master application can delay execution of the second
program?

Your "master" application can start app1, then make several attempts
to connect to the socket. When that succeeds, it can close the
connection and start app2, which should then also succeed. This
assumes that app1 correctly deals with closed connections and multiple
clients.

/gordon

--
.