]> 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:25 +0000 (04:52 +0000)
committerTed Lemon <source@isc.org>
Fri, 10 Jul 1998 04:52:25 +0000 (04:52 +0000)
server/dhcpd.c

index 6d535419fd3a658847ba1f0a8712b248a72bed42..afbbe88402d1429b309140cd351183216ff6fe0d 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char ocopyright[] =
-"$Id: dhcpd.c,v 1.51 1998/04/19 23:35:26 mellon Exp $ Copyright 1995, 1996, 1997, 1998 The Internet Software Consortium.";
+"$Id: dhcpd.c,v 1.52 1998/07/10 04:52:25 mellon Exp $ Copyright 1995, 1996, 1997, 1998 The Internet Software Consortium.";
 #endif
 
 static char copyright[] =
@@ -250,7 +250,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,