Skip to content

Commit

Permalink
[Server] Re-enable the oss.fdlimit directive to allow POSIX preload+x…
Browse files Browse the repository at this point in the history
…rootd.
  • Loading branch information
abh3 committed Jul 21, 2017
1 parent c808bb5 commit 49d0415
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/XrdOss/XrdOssConfig.cc
Expand Up @@ -1150,10 +1150,20 @@ int XrdOssSys::xdefault(XrdOucStream &Config, XrdSysError &Eroute)

int XrdOssSys::xfdlimit(XrdOucStream &Config, XrdSysError &Eroute)
{
char *val;
int fence = 0, FDHalf = FDLimit>>1;

if (!(val = Config.GetWord()))
{Eroute.Emsg("Config", "fdlimit fence not specified"); return 1;}

if (!strcmp(val, "*")) FDFence = FDHalf;
else {if (XrdOuca2x::a2i(Eroute,"fdlimit fence",val,&fence,0)) return 1;
FDFence = (fence < FDHalf ? fence : FDHalf);
}

while(Config.GetWord()) {}

Eroute.Say("Config warning: ", "fdlimit directive no longer supported.");
// Eroute.Say("Config warning: ", "fdlimit directive no longer supported.");

return 0;
}
Expand Down

0 comments on commit 49d0415

Please sign in to comment.