Commit ccd1a2fd authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(toploop): Transform ISC_EVENT_LOGIN to ISC_EVENT_LOGIN_UNRELOCATED if

	the file descriptor is above fd_ceiling.  This can only happen
	if USING_RLIMIT_NOFILE is undefined, so ifdef out this code.
parent 30688fed
/*
* $Id: connections.c,v 0.82 2002/10/26 11:59:12 ceder Exp $
* $Id: connections.c,v 0.83 2002/10/26 22:46:41 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -814,6 +814,11 @@ toploop(void)
if ( event == NULL )
restart_kom("toploop(): Got NULL event - shouldn't happen...\n");
#ifndef USING_RLIMIT_NOFILE
if (event->event == ISC_EVENT_LOGIN && event->session->fd > fd_ceiling)
event->event = ISC_EVENT_LOGIN_UNRELOCATED;
#endif
switch ( event->event )
{
case ISC_EVENT_ERROR:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment