Getting kerberos to use fds > 256
Nicolas Williams
Nicolas.Williams at ubsw.com
Tue Feb 12 15:46:09 EST 2002
This is the Solaris 32-bit stdio is limited to 256 file descriptors.
A typical solution that works is to dup2() new fildes up above 256 for
fildes that need not be used with stdio, thus reserving the first 256
fildes for things that need stdio. This is a very app-specific hack, but
it can be generalized into an LD_PRELOADable library that more generally
solves the problem(*).
Another typical solution is to use the 64-bit Solaris environment.
(*) This is left as an exercise for the reader.
Nico
On Tue, Feb 12, 2002 at 12:01:51AM +0000, Christopher Burke wrote:
> OK I am very clear now on why Kerberos is failing here ... I am calling from
> inside another application (same process).
>
> I have no control over the parent application and it creates lots (up to
> 6000) of simulateous open files and associated file descriptors.
>
> The problem is - once it goes past 256 open files/fds kerberos no longer
> works as it cannot use a fd above 256.
>
> It gives me the EMFILE (24) from init_context.
>
> So how do I convince the kerberos library to use the fds above 256 ?
>
> --
> ---
> /* Christopher Burke - Spam Mail to craznar at hotmail.com
> |* www.craznar.com -
> \* Real mail to cburke(at)craznar(dot)com
> _______________________________________________
> Kerberos mailing list
> Kerberos at mit.edu
> http://mailman.mit.edu/mailman/listinfo/kerberos
--
-DISCLAIMER: an automatically appended disclaimer may follow. By posting-
-to a public e-mail mailing list I hereby grant permission to distribute-
-and copy this message.-
Visit our website at http://www.ubswarburg.com
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.
More information about the Kerberos
mailing list