From: Ted Lemon Date: Fri, 10 Jul 1998 04:52:25 +0000 (+0000) Subject: If there's another server running, refuse to run. X-Git-Tag: carrel-2~80 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=02361a184b4584675e9e3f1ad43a9d4ef25b0505;p=thirdparty%2Fdhcp.git If there's another server running, refuse to run. --- diff --git a/server/dhcpd.c b/server/dhcpd.c index 6d535419f..afbbe8840 100644 --- a/server/dhcpd.c +++ b/server/dhcpd.c @@ -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,