Jim Meyering wrote:
It would be nice if sort could calculate how many processes it can fork,
and then ensure that it never uses more than say 25% of that number of
process slots.
Well, there's always getrlimit(). I'm not sure about a portable way to
find out what chunk of that is in use, but even limiting process spawns
to 1/4 of the rlimit would help a bit. Of course failing gracefully (or
retrying) would be better.
--
Matthew
Vs lbh pna ernq guvf jvgubhg fbsgjner, lbh ner n FREVBHF areq! --
Nqncgrq sebz Znggurj Jva (ivz-qri znvyvat yvfg)
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils