use daemon() to put supfilesrv into daemon mode...

This commit is contained in:
cgd 1993-06-05 21:32:15 +00:00
parent fa83388128
commit eb192ab885
2 changed files with 13 additions and 4 deletions

View File

@ -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

View File

@ -37,6 +37,9 @@
* /usr/bin/sup for exported version of sup.
*
* $Log: supfilesrv.c,v $
* 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.
*
@ -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",