use daemon() to put supfilesrv into daemon mode...
This commit is contained in:
parent
fa83388128
commit
eb192ab885
|
@ -42,7 +42,7 @@
|
|||
#
|
||||
SITE = NETBSD
|
||||
#SITE = CMUCS
|
||||
NETBSD_DEFINES = -UMACH -DVAR_TMP
|
||||
NETBSD_DEFINES = -UMACH -DVAR_TMP -DHAS_DAEMON
|
||||
AFS_DEFINES = -DAFS -I/usr/afsws/include
|
||||
OSF_DEFINES = -UMACH -DOSF -D_BSD -noshrlib -g -DNEED_VSNPRINTF -DVAR_TMP
|
||||
CMUCS_DEFINES = -DMACH -DDOPRINT_VA -DNEED_VPRINTF
|
||||
|
@ -76,9 +76,9 @@ USE_CRYPT = yes
|
|||
.endif
|
||||
|
||||
.if defined(USE_CRYPT)
|
||||
NETBSD_LIBS = -lcrypt
|
||||
NETBSD_LIBS = -lcrypt -lutil
|
||||
.else
|
||||
NETBSD_LIBS =
|
||||
NETBSD_LIBS = -lutil
|
||||
.endif
|
||||
CMUCS_LIBS = -lsys
|
||||
OSF_LIBS = -lbsd
|
||||
|
|
|
@ -37,7 +37,10 @@
|
|||
* /usr/bin/sup for exported version of sup.
|
||||
*
|
||||
* $Log: supfilesrv.c,v $
|
||||
* Revision 1.2 1993/05/24 17:57:31 brezak
|
||||
* Revision 1.3 1993/06/05 21:32:17 cgd
|
||||
* use daemon() to put supfilesrv into daemon mode...
|
||||
*
|
||||
* Revision 1.2 1993/05/24 17:57:31 brezak
|
||||
* Remove netcrypt.c. Remove unneeded files. Cleanup make.
|
||||
*
|
||||
* Revision 1.20 92/09/09 22:05:00 mrt
|
||||
|
@ -332,6 +335,12 @@ char **argv;
|
|||
maxchildren = MAXCHILDREN; /* defined in sup.h */
|
||||
|
||||
init (argc,argv); /* process arguments */
|
||||
|
||||
#ifdef HAS_DAEMON
|
||||
if (!live) /* if not debugging, turn into daemon */
|
||||
daemon(0, 0);
|
||||
#endif
|
||||
|
||||
logopen ("supfile");
|
||||
tloc = time ((long *)NULL);
|
||||
loginfo ("SUP File Server Version %d.%d (%s) starting at %s",
|
||||
|
|
Loading…
Reference in New Issue