Update of /cvsroot/netrek/server/Vanilla/newstartd
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1346/newstartd

Modified Files:
	newstartd.c 
Log Message:
multicast server discovery


Index: newstartd.c
===================================================================
RCS file: /cvsroot/netrek/server/Vanilla/newstartd/newstartd.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- newstartd.c	2 Jan 2006 08:07:05 -0000	1.5
+++ newstartd.c	22 Feb 2006 09:18:30 -0000	1.6
@@ -184,13 +184,26 @@
 	  fprintf (stderr, "netrekd: stopped pid %d\n", pid);
 	  exit (0);
 	}
-	fprintf (stderr, "netrekd: cannot stop, pid %d\n, may be already stopped", pid);
+	fprintf (stderr, "netrekd: cannot stop, pid %d\n, may be already stopped\n", pid);
 	perror ("kill");
 	exit (1);
       }
       fprintf (stderr, "netrekd: cannot stop, no %s file\n", N_NETREKDPID);
       exit (1);
     }
+    if (!strcmp (argv[1], "reload")) {
+      if (file != NULL) {
+	if (kill (pid, SIGHUP) == 0) {
+	  fprintf (stderr, "netrekd: sent SIGHUP to pid %d\n", pid);
+	  exit (0);
+	}
+	fprintf (stderr, "netrekd: cannot reload, pid %d not present\n", pid);
+	perror ("kill");
+	exit (1);
+      }
+      fprintf (stderr, "netrekd: cannot reload, no %s file\n", N_NETREKDPID);
+      exit (1);
+    }
   }
 
   /* check for duplicate start */