diff --git a/mopd/Makefile b/mopd/Makefile index 3a2ddd4..9039bf3 100644 --- a/mopd/Makefile +++ b/mopd/Makefile @@ -1,7 +1,10 @@ -# $NetBSD: Makefile,v 1.7 1997/10/16 07:36:58 lukem Exp $ +# $NetBSD: Makefile,v 1.8 1999/06/06 03:21:43 thorpej Exp $ PROG= mopd SRCS= mopd.c process.c MAN= mopd.8 +LDADD+= -lutil +DPADD+= ${LIBUTIL} + .include diff --git a/mopd/mopd.c b/mopd/mopd.c index 8cfae87..5d8e7f4 100644 --- a/mopd/mopd.c +++ b/mopd/mopd.c @@ -1,4 +1,4 @@ -/* $NetBSD: mopd.c,v 1.5 1997/10/16 23:25:17 lukem Exp $ */ +/* $NetBSD: mopd.c,v 1.6 1999/06/06 03:21:43 thorpej Exp $ */ /* * Copyright (c) 1993-96 Mats O Jansson. All rights reserved. @@ -31,7 +31,7 @@ #include #ifndef lint -__RCSID("$NetBSD: mopd.c,v 1.5 1997/10/16 23:25:17 lukem Exp $"); +__RCSID("$NetBSD: mopd.c,v 1.6 1999/06/06 03:21:43 thorpej Exp $"); #endif /* @@ -53,6 +53,8 @@ __RCSID("$NetBSD: mopd.c,v 1.5 1997/10/16 23:25:17 lukem Exp $"); #include "process.h" #include "rc.h" +#include + /* * The list of all interfaces that are being listened to. * "selects" on the descriptors in this list. @@ -141,6 +143,7 @@ main(argc, argv) /* Fade into the background */ daemon(0, 0); + pidfile(NULL); } syslog(LOG_INFO, "%s %s started.", __progname, version);