struct ktc_encryptionKey tkey;
int i;
char namebuf[AFSDIR_PATH_MAX];
-
+#ifndef AFS_NT40_ENV
+ int nofork = 0;
+#endif
#ifdef AFS_AIX32_ENV
struct sigaction nsa;
DoSyslog = 1;
DoSyslogFacility = atoi(argv[code]+8);
}
+ else if (strcmp(argv[code], "-nofork")==0) {
+ nofork = 1;
+ }
#endif
else if (strcmp(argv[code], "-enable_peer_stats")==0) {
rx_enablePeerRPCStats();
printf("Usage: bosserver [-noauth] [-log] "
"[-syslog[=FACILITY]] "
"[-enable_peer_stats] [-enable_process_stats] "
+ "[-nofork] "
"[-help]\n");
#else
printf("Usage: bosserver [-noauth] [-log] "
/* go into the background and remove our controlling tty */
#ifndef AFS_NT40_ENV
+ if (!nofork)
background();
#endif /* ! AFS_NT40_ENV */