Update of /cvsroot/srvx/services/src
In directory usw-pr-cvs1:/tmp/cvs-serv4769/src
Modified Files:
proto-p10.c
Log Message:
Handle squits of services itself properly.
Index: proto-p10.c
===================================================================
RCS file: /cvsroot/srvx/services/src/proto-p10.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -r1.33 -r1.34
*** proto-p10.c 14 Sep 2002 03:48:59 -0000 1.33
--- proto-p10.c 15 Sep 2002 07:21:16 -0000 1.34
***************
*** 1230,1233 ****
--- 1230,1243 ----
if (argc < 4) return 0;
if (!(server = GetServerH(argv[1]))) return 0;
+
+ if (server == self->uplink) {
+ /* Force a reconnect to the currently selected server. */
+ cManager.uplink->tries = 0;
+ log(MAIN_LOG, LOG_INFO, "Squitting from uplink: %s\n", argv[3]);
+ close_socket();
+
+ return 1;
+ }
+
DelServer(server, 0, argv[3]);
return 1;
|