]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
If there's another server running, refuse to run.
authorTed Lemon <source@isc.org>
Fri, 10 Jul 1998 04:52:17 +0000 (04:52 +0000)
committerTed Lemon <source@isc.org>
Fri, 10 Jul 1998 04:52:17 +0000 (04:52 +0000)
server/dhcpd.c

index afda8f06d90619f1e817ef05f6562e638f8a1639..73fc029a4ca09f2c0b743113aa7978260bb08992 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char ocopyright[] =
-"$Id: dhcpd.c,v 1.45.2.2 1998/06/26 21:11:01 mellon Exp $ Copyright 1995, 1996, 1997, 1998 The Internet Software Consortium.";
+"$Id: dhcpd.c,v 1.45.2.3 1998/07/10 04:52:17 mellon Exp $ Copyright 1995, 1996, 1997, 1998 The Internet Software Consortium.";
 #endif
 
 static char copyright[] =
@@ -237,7 +237,8 @@ int main (argc, argv, envp)
                                close (i);
                                pidfilewritten = 1;
                        }
-               }
+               } else
+                       error ("There's already a DHCP server running.\n");
        }
 
        /* If we were requested to log to stdout on the command line,