Remove some notdefage and link with libutil so we properly daemonize.
This commit is contained in:
parent
e1a2193974
commit
6d03c98781
|
@ -1,5 +1,5 @@
|
|||
# from: @(#)Makefile 8.1 (Berkeley) 6/5/93
|
||||
# $Id: Makefile,v 1.3 1994/01/12 23:20:50 cgd Exp $
|
||||
# $Id: Makefile,v 1.4 1994/01/13 17:45:33 mycroft Exp $
|
||||
|
||||
.if exists(${.CURDIR}/../../sys)
|
||||
CFLAGS+=-I${.CURDIR}/../../sys
|
||||
|
@ -11,8 +11,7 @@ PROG= mount_portal
|
|||
PTAL= pt_conf.c pt_exec.c pt_file.c pt_tcp.c
|
||||
SRCS= mount_portal.c conf.c activate.c ${PTAL}
|
||||
MAN8= mount_portal.0
|
||||
|
||||
LDADD= -lcompat
|
||||
DPADD= ${LIBCOMPAT}
|
||||
LDADD+= -lcompat -lutil
|
||||
DPADD+= ${LIBCOMPAT} ${LIBUTIL}
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
*
|
||||
* from: Id: portald.c,v 1.3 1992/05/27 07:09:27 jsp Exp jsp
|
||||
* from: @(#)mount_portal.c 8.1 (Berkeley) 6/5/93
|
||||
* $Id: mount_portal.c,v 1.1 1994/01/12 20:01:45 cgd Exp $
|
||||
* $Id: mount_portal.c,v 1.2 1994/01/13 17:45:37 mycroft Exp $
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -151,12 +151,10 @@ char *v[];
|
|||
exit(1);
|
||||
}
|
||||
|
||||
#ifdef notdef
|
||||
/*
|
||||
* Everything is ready to go - now is a good time to fork
|
||||
*/
|
||||
daemon(0, 0);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Start logging (and change name)
|
||||
|
@ -221,7 +219,6 @@ char *v[];
|
|||
/*
|
||||
* Now fork a new child to deal with the connection
|
||||
*/
|
||||
#ifdef notdef
|
||||
eagain:;
|
||||
switch (pid = fork()) {
|
||||
case -1:
|
||||
|
@ -239,7 +236,6 @@ char *v[];
|
|||
(void) close(so2);
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
activate(&q, so2);
|
||||
}
|
||||
syslog(LOG_INFO, "%s unmounted", mountpt);
|
||||
|
|
Loading…
Reference in New Issue