From 362d7cdf4b64a9d68f946dfe5af4aa71c90f5c7d Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Wed, 12 May 1999 17:59:14 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6217 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/kx/kxd.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/appl/kx/kxd.c b/appl/kx/kxd.c index 3869aa4be..498b6dfce 100644 --- a/appl/kx/kxd.c +++ b/appl/kx/kxd.c @@ -57,6 +57,10 @@ childhandler (int sig) SIGRETURN(0); } +/* + * Print the error message `format' and `...' on fd and die. + */ + void fatal (kx_context *kc, int fd, char *format, ...) { @@ -78,6 +82,10 @@ fatal (kx_context *kc, int fd, char *format, ...) exit (1); } +/* + * Remove all sockets and cookie files. + */ + static void cleanup(int nsockets, struct x_socket *sockets) { @@ -94,7 +102,7 @@ cleanup(int nsockets, struct x_socket *sockets) } /* - * + * Prepare to receive a connection on `sock'. */ static int @@ -252,6 +260,10 @@ passive_session (kx_context *kc, int fd, int sock, int cookiesp) return copy_encrypted (kc, fd, sock); } +/* + * + */ + static int active_session (kx_context *kc, int fd, int sock, int cookiesp) { @@ -263,6 +275,10 @@ active_session (kx_context *kc, int fd, int sock, int cookiesp) return copy_encrypted (kc, fd, sock); } +/* + * Handle a new connection. + */ + static int doit_conn (kx_context *kc, int fd, int meta_sock, int flags, int cookiesp) @@ -332,7 +348,7 @@ doit_conn (kx_context *kc, } /* - * + * Is the current user the owner of the console? */ static void