summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-26 10:12:47 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-26 10:12:47 +0000
commit8634a709760373de8e5504f023bfa5f19d125aa0 (patch)
treef1052a12f2f4134c915a425343d0ad19d947c333
parentdf03a21418dab281be1c9d44eb299096dadb1398 (diff)
last consumer in base of pidfile()...
-rw-r--r--usr.sbin/ypserv/ypserv/Makefile6
-rw-r--r--usr.sbin/ypserv/ypserv/ypserv.c3
2 files changed, 4 insertions, 5 deletions
diff --git a/usr.sbin/ypserv/ypserv/Makefile b/usr.sbin/ypserv/ypserv/Makefile
index 59526795d11..5d39212520c 100644
--- a/usr.sbin/ypserv/ypserv/Makefile
+++ b/usr.sbin/ypserv/ypserv/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.11 2004/01/20 21:06:02 matthieu Exp $
+# $OpenBSD: Makefile,v 1.12 2015/10/26 10:12:46 deraadt Exp $
PROG= ypserv
MAN= ypserv.acl.5 securenet.5 ypserv.8
@@ -12,8 +12,8 @@ SRCS+= ypserv.c ypserv_proc.c ypserv_db.c acl.c yplog.c ypdb.c
CLEANFILES+= ${TSRCS} ${HDRS}
-LDADD+= -lutil -lrpcsvc
-DPADD+= ${LIBUTIL} ${LIBRPCSVC}
+LDADD+= -lrpcsvc
+DPADD+= ${LIBRPCSVC}
.PATH: ${.CURDIR}/../common
CFLAGS+=-DDAEMON -DOPTDB -I${.CURDIR}/../common -I.
#CFLAGS=-DDAEMON -I${.CURDIR}/../common -DDEBUG -g
diff --git a/usr.sbin/ypserv/ypserv/ypserv.c b/usr.sbin/ypserv/ypserv/ypserv.c
index 354486d68e5..539e21ebfcd 100644
--- a/usr.sbin/ypserv/ypserv/ypserv.c
+++ b/usr.sbin/ypserv/ypserv/ypserv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypserv.c,v 1.41 2015/01/15 00:40:26 deraadt Exp $ */
+/* $OpenBSD: ypserv.c,v 1.42 2015/10/26 10:12:46 deraadt Exp $ */
/*
* Copyright (c) 1994 Mats O Jansson <moj@stacken.kth.se>
@@ -473,7 +473,6 @@ main(int argc, char *argv[])
(void)signal(SIGCHLD, sig_child);
(void)signal(SIGHUP, sig_hup);
- pidfile(NULL);
if (_rpcfdtype == 0 || _rpcfdtype == SOCK_DGRAM) {
transp = svcudp_create(sock);