From 4330835ce10cbc11916fc63c6ab3fe148b9be906 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Sat, 3 Jun 1995 21:22:00 +0000 Subject: [PATCH] If using inetd, set file descriptor of socket to 0 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5941 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/sample/sserver/ChangeLog | 4 ++++ src/appl/sample/sserver/sserver.c | 1 + 2 files changed, 5 insertions(+) diff --git a/src/appl/sample/sserver/ChangeLog b/src/appl/sample/sserver/ChangeLog index 14a79dab7..754cb3a02 100644 --- a/src/appl/sample/sserver/ChangeLog +++ b/src/appl/sample/sserver/ChangeLog @@ -1,3 +1,7 @@ +Sat Jun 3 17:20:28 1995 Ezra Peisach + + * sserver.c (main): If using inetd, set file descriptor to 0. + Wed May 10 15:18:19 1995 Ezra Peisach (epeisach@kangaroo.mit.edu) * sserver.M: Document options. diff --git a/src/appl/sample/sserver/sserver.c b/src/appl/sample/sserver/sserver.c index d97f5febd..166ebf585 100644 --- a/src/appl/sample/sserver/sserver.c +++ b/src/appl/sample/sserver/sserver.c @@ -173,6 +173,7 @@ main(argc, argv) syslog(LOG_ERR, "getpeername: %m"); exit(1); } + sock = 0; } peeraddr.addrtype = peername.sin_family; -- 2.26.2