From: Ted Lemon Date: Fri, 10 Jul 1998 04:52:17 +0000 (+0000) Subject: If there's another server running, refuse to run. X-Git-Tag: V2-BETA-1-PATCH-7~56 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cd46904d164796f255a1a7eff9c5c01ff9e21e50;p=thirdparty%2Fdhcp.git If there's another server running, refuse to run. --- diff --git a/server/dhcpd.c b/server/dhcpd.c index afda8f06d..73fc029a4 100644 --- a/server/dhcpd.c +++ b/server/dhcpd.c @@ -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,