From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b42fb2c2979398ae X-Google-Attributes: gid103376,public From: Laurent Pautet Subject: Re: Shutting down a Dist. Systems server... Date: 1997/07/14 Message-ID: #1/1 X-Deja-AN: 256810719 Sender: pautet@scapin.enst.fr References: <5q6ikk$l5v$1@goanna.cs.rmit.edu.au> Organization: Ecole Nationale Superieure des Telecommunications, Paris France Newsgroups: comp.lang.ada Date: 1997-07-14T00:00:00+00:00 List-Id: >>>>> "Dale" == Dale Stanbrough writes: Dale> I am currently building a small distributed system which has Dale> clients dynamically querying a server. Using glade i have Dale> specified a main procedure for the server. When this Dale> procedure terminates, and all the client partitions have Dale> terminated, the server stops. Dale> Is there any way to shut the server down, so that it doesn't Dale> have to wait for clients to terminate? Presumably the Dale> clients would get a System.RPC.Communication_Error exception Dale> in any further communication with the server. Dale> Dale If you look at the client / server Bank example (in GLADE-1.02), the way to configure the termiantion is described. Basically, you want the client to terminate when all its tasks can terminate and you want the server to terminate when all the tasks of all the partitions can terminate. For the cleint, use : for Client'Termination use Local_Termination; in the configuration file. For the server, there is no problem as the default termination is the distributed termination detection. The problem with the solution described in your second paragraph is that some clients can be killed by the server in the middle of their sessions if the server stops without deconnecting the clients. Anyway, if you want to do that, add in your server a task which only job is to wait for the shutdown signal and use the termination mode of the clients (terminates when local termination is detected.) -- -- Laurent