mirror of
https://github.com/bstansell/conserver.git
synced 2025-01-18 02:29:45 +00:00
Imported from conserver-GNAC-6.13.tar.gz
This commit is contained in:
parent
7e200f7578
commit
06553246f3
19
CHANGES
19
CHANGES
@ -1,7 +1,16 @@
|
||||
CHANGES
|
||||
=======
|
||||
|
||||
version 6.12:
|
||||
version 6.13 (Dec 1, 1999):
|
||||
- high-bit always stripped from network - now follows
|
||||
CPARITY setting in cons.h (found by Daniel Andersson
|
||||
<daniel@sto.sema.se>)
|
||||
- New conserver -i flag for on-demand connects/disconnects
|
||||
to console ports (contributed by Thomas E. Knowles
|
||||
<tek@CS.Princeton.EDU>)
|
||||
- Solaris, Linux, and others now use tcsendbreak()
|
||||
|
||||
version 6.12 (Aug 24, 1999):
|
||||
- Blank line bug after '%%' in .cf file (found by Miss
|
||||
Himali Patel <cpate03@dcs.bbk.ac.uk>)
|
||||
Special thanks to Michael Sullivan <mike@trdlnk.com> for
|
||||
@ -9,17 +18,17 @@ version 6.12:
|
||||
- Read result bug in group.c caused lock up
|
||||
- Signal handling fixes and cleanup
|
||||
- Several minor spelling errors in strings and comments
|
||||
- Solaris package creation scripts
|
||||
- Solaris package creation scripts (contrib/solaris-package)
|
||||
- Extended syntax of the access restrictions to understand
|
||||
network numbers with optional netmasks
|
||||
|
||||
version 6.11:
|
||||
version 6.11 (May 14, 1999):
|
||||
- Added broadcast capability in client (-b option)
|
||||
- Protected certain escape sequences from end-user use
|
||||
- Added "console server shutting down" broadcast
|
||||
- Improved local tty break code (thanks Craig and Brian!)
|
||||
|
||||
version 6.10:
|
||||
version 6.10 (Jan 26, 1999):
|
||||
- Documentation fixes
|
||||
- Web page up and running
|
||||
|
||||
@ -51,5 +60,5 @@ before version 6.05:
|
||||
and enhancements of various types were applied.
|
||||
|
||||
#
|
||||
# $Id: CHANGES,v 1.8 1999-08-24 14:37:09-07 bryan Exp $
|
||||
# $Id: CHANGES,v 1.10 1999-12-01 13:29:14-08 bryan Exp $
|
||||
#
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: cons-default.h,v 1.2 1999-01-26 20:35:17-08 bryan Exp $
|
||||
* $Id: cons-default.h,v 1.3 1999-12-01 00:19:34-08 bryan Exp $
|
||||
*
|
||||
* Copyright GNAC, Inc., 1998
|
||||
*
|
||||
@ -26,4 +26,7 @@
|
||||
|
||||
--- Number of child processes
|
||||
#define MAXGRP 32
|
||||
|
||||
--- Clear parity (high-bit) [true/false setting]
|
||||
#define CPARITY 1
|
||||
*/
|
||||
|
@ -1,10 +1,10 @@
|
||||
.\" @(#)conserver.8 01/06/91 OSU CIS; Thomas A. Fine
|
||||
.\" $Id: conserver.man,v 1.5 1999-04-12 22:40:55-07 bryan Exp $
|
||||
.\" $Id: conserver.man,v 1.6 1999-12-01 11:55:13-08 bryan Exp $
|
||||
.TH CONSERVER 8 "Local"
|
||||
.SH NAME
|
||||
conserver \- console server daemon
|
||||
.SH SYNOPSIS
|
||||
.B conserver [\-\fBdnv\fP] [\-\fBC\fP \fIconfig\fP]
|
||||
.B conserver [\-\fBdinv\fP] [\-\fBC\fP \fIconfig\fP]
|
||||
.br
|
||||
.B conserver [\-\fBhV\fP]
|
||||
.SH DESCRIPTION
|
||||
@ -46,6 +46,9 @@ Become a daemon.
|
||||
.B \-h
|
||||
Output a brief help message.
|
||||
.TP
|
||||
.B \-i
|
||||
Initiate console connections on demand (and close them when not used)
|
||||
.TP
|
||||
.B \-n
|
||||
The \fIconserver\fP will \fBnot\fP output unloved console output to
|
||||
stdout.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: group.c,v 5.56 1999-08-24 14:39:12-07 bryan Exp $
|
||||
* $Id: group.c,v 5.58 1999-12-01 11:55:13-08 bryan Exp $
|
||||
*
|
||||
* Copyright GNAC, Inc., 1998
|
||||
*
|
||||
@ -219,6 +219,8 @@ ReUp()
|
||||
if (pCE->fup) {
|
||||
continue;
|
||||
}
|
||||
if (fNoinit)
|
||||
continue;
|
||||
ConsInit(pCE, rinitUsr1);
|
||||
}
|
||||
}
|
||||
@ -642,9 +644,10 @@ int sfd;
|
||||
/* open all the files we need for the consoles in our group
|
||||
* if we can't get one (bitch and) flag as down
|
||||
*/
|
||||
for (iConsole = 0; iConsole< pGE->imembers; ++iConsole) {
|
||||
ConsInit(& pCE[iConsole], &rinit);
|
||||
}
|
||||
if (!fNoinit)
|
||||
for (iConsole = 0; iConsole< pGE->imembers; ++iConsole) {
|
||||
ConsInit(& pCE[iConsole], &rinit);
|
||||
}
|
||||
|
||||
/* set up the list of free connection slots, we could just calloc
|
||||
* them, but the stack pages are already in core...
|
||||
@ -795,6 +798,9 @@ drop:
|
||||
stymee[24] = '\000';
|
||||
printf("%s: %s: logout %s [%s]\n", progname, pCEServing->server, pCLServing->acid, stymee);
|
||||
}
|
||||
if (fNoinit && (CLIENT *)0 ==
|
||||
pCLServing->pCEto->pCLon->pCLnext)
|
||||
ConsDown(pCLServing->pCEto, &rinit);
|
||||
|
||||
FD_CLR(pCLServing->fd, &rinit);
|
||||
(void)close(pCLServing->fd);
|
||||
@ -841,11 +847,13 @@ drop:
|
||||
*/
|
||||
pCLServing->typetym = tyme = time((long *)0);
|
||||
|
||||
/* always clear parity from the network
|
||||
#if CPARITY
|
||||
/* clear parity from the network
|
||||
*/
|
||||
for (i = 0; i < nr; ++i) {
|
||||
acIn[i] &= 127;
|
||||
}
|
||||
#endif
|
||||
|
||||
for (i = 0; i < nr; ++i) switch (pCLServing->iState) {
|
||||
case S_BCAST:
|
||||
@ -1011,6 +1019,9 @@ drop:
|
||||
}
|
||||
pCEServing->pCLon = pCLServing;
|
||||
|
||||
if (fNoinit && !pCEServing->fup)
|
||||
ConsInit(pCEServing, &rinit);
|
||||
|
||||
/* try for attach on new console
|
||||
*/
|
||||
if (!pCEServing->fup) {
|
||||
@ -1120,7 +1131,7 @@ drop:
|
||||
}
|
||||
#else
|
||||
#if USE_TCBREAK
|
||||
if (-1 == tcsendbreak(pCEServing->fdtty, 9)) {
|
||||
if (-1 == tcsendbreak(pCEServing->fdtty, 0)) {
|
||||
CSTROUT(pCLServing->fd, "failed]\r\n");
|
||||
continue;
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: main.c,v 5.31 1999-01-26 20:35:17-08 bryan Exp $
|
||||
* $Id: main.c,v 5.32 1999-12-01 11:55:13-08 bryan Exp $
|
||||
*
|
||||
* Copyright GNAC, Inc., 1998
|
||||
*
|
||||
@ -58,10 +58,10 @@
|
||||
#endif
|
||||
|
||||
char rcsid[] =
|
||||
"$Id: main.c,v 5.31 1999-01-26 20:35:17-08 bryan Exp $";
|
||||
"$Id: main.c,v 5.32 1999-12-01 11:55:13-08 bryan Exp $";
|
||||
char *progname =
|
||||
rcsid;
|
||||
int fAll = 1, fVerbose = 0, fSoftcar = 0;
|
||||
int fAll = 1, fVerbose = 0, fSoftcar = 0, fNoinit = 0;
|
||||
int fDaemon = 0;
|
||||
char chDefAcc = 'r';
|
||||
char *pcConfig = CONFIG;
|
||||
@ -134,6 +134,7 @@ static char *apcLong[] = {
|
||||
"C config give a new config file to the server process",
|
||||
"d become a daemon, output to /dev/null",
|
||||
"h output this message",
|
||||
"i init console connections on demand",
|
||||
"n do not output summary stream to stdout",
|
||||
"v be verbose on startup",
|
||||
"V output version info",
|
||||
@ -203,8 +204,8 @@ char **argv;
|
||||
register int i, j;
|
||||
register FILE *fpConfig;
|
||||
auto struct hostent *hpMe;
|
||||
static char acOpts[] = "a:C:dhnsVv",
|
||||
u_terse[] = " [-dhnsvV] [-a type] [-C config]";
|
||||
static char acOpts[] = "a:C:dhinsVv",
|
||||
u_terse[] = " [-dhinsvV] [-a type] [-C config]";
|
||||
extern int optopt;
|
||||
extern char *optarg;
|
||||
auto REMOTE
|
||||
@ -266,6 +267,9 @@ char **argv;
|
||||
fprintf(stderr, "%s: usage%s\n", progname, u_terse);
|
||||
Usage(stdout, apcLong);
|
||||
exit(0);
|
||||
case 'i':
|
||||
fNoinit = 1;
|
||||
break;
|
||||
case 'n':
|
||||
fAll = 0;
|
||||
break;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: main.h,v 5.10 1999-01-26 20:35:17-08 bryan Exp $
|
||||
* $Id: main.h,v 5.11 1999-12-01 11:55:13-08 bryan Exp $
|
||||
*
|
||||
* Copyright GNAC, Inc., 1998
|
||||
*
|
||||
@ -36,7 +36,7 @@
|
||||
*/
|
||||
extern char rcsid[];
|
||||
extern char *progname;
|
||||
extern int fAll, fVerbose, fSoftcar, fInteractive;
|
||||
extern int fAll, fVerbose, fSoftcar, fNoinit, fInteractive;
|
||||
extern char chDefAcc;
|
||||
extern char *pcConfig;
|
||||
extern struct sockaddr_in in_port;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: port.h,v 1.8 1999-08-24 14:37:29-07 bryan Exp $
|
||||
* $Id: port.h,v 1.10 1999-12-01 11:55:13-08 bryan Exp $
|
||||
*
|
||||
* Copyright GNAC, Inc., 1998
|
||||
*
|
||||
@ -214,7 +214,7 @@
|
||||
#define USE_TERMIOS (defined(HPUX7)||defined(HPUX8)||defined(HPUX9)||defined(SUN5)||defined(PTX)||defined(IRIX5)||defined(LINUX2)||defined(IRIX6)||defined(SUN4)||defined(BSDOS3))
|
||||
#endif
|
||||
#if !defined(USE_TCBREAK)
|
||||
#define USE_TCBREAK (defined(PTX))
|
||||
#define USE_TCBREAK (defined(PTX)||defined(BSDOS3)||defined(LINUX2)||defined(SUN5))
|
||||
#endif
|
||||
|
||||
/* if we have <strings.h> define this to 1, else define to 0
|
||||
@ -238,7 +238,9 @@
|
||||
|
||||
/* used to force the server process to clear parity, which is for farmers
|
||||
*/
|
||||
#if !defined(CPARITY)
|
||||
#define CPARITY 1
|
||||
#endif
|
||||
|
||||
|
||||
/* if you do not have fd_set's here is a possible emulation
|
||||
|
@ -1,9 +1,9 @@
|
||||
/*
|
||||
* $Id: version.h,v 1.12 1999-08-24 14:37:24-07 bryan Exp $
|
||||
* $Id: version.h,v 1.13 1999-12-01 11:55:13-08 bryan Exp $
|
||||
*
|
||||
* Copyright GNAC, Inc., 1998
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@gnac.com)
|
||||
*/
|
||||
|
||||
#define GNAC_VERSION "GNAC version 6.12"
|
||||
#define GNAC_VERSION "GNAC version 6.13"
|
||||
|
Loading…
Reference in New Issue
Block a user