Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Dec 2016 11:53:08 +0800
From:      =?GB2312?B?yqK727uq?= <hhsheng@corp.netease.com>
To:        freebsd-questions <freebsd-questions@FreeBSD.org>,  freebsd-bugs <freebsd-bugs@freebsd.org>
Subject:   question about fopen fd limit
Message-ID:  <2016122211530807976976@corp.netease.com>

next in thread | raw e-mail | index | archive | help
aGkgYWxsLA0KDQogICBoaX4NCiAgIHdlIGFyZSBmcm9tIENoaW5lc2UgR2FtZSBEZXZlbG9wIENv
cnAsIE5ldGVhc2UuDQogICBhbmQgT25lIG9mIG91ciBwcm9kdWN0IHVzaW5nIEZyZWVCc2QgYXMg
aXRzIE9TIHBsYXRmb3JtLg0KICAgVGhpcyBHYW1lIGhhcyBNaWxsaW9ucyBvZiBwbGF5ZXJzIG9u
bGluZSAsIGFuZCBFYWNoIFNlcnZlciBtYXkgaG9sZHMgMjUwMDArIHRjcCBjb25uZWN0aW9uIGF0
IHRoZSBzYW1lIHRpbWUuVGhhbmtzIHRvIEJTRCBhbmQga3F1ZXVlIDopDQoNCiAgIGZvciBleGFt
cGxlLCBpdCdzIG9uZSBvZiBvdXIgc2VydmVyICwgbmV0c3RhdCBjbWQgdG8gbGlzdCBjb25uZWN0
aW9ucyBvdmVyYWxsLi4uDQogICBuZXRzdGF0IC1hbiB8IGdyZXAgMTMzOTYgKGl0J3Mgb3VyIGxp
c3RlbmluZyBwb3J0KSB8IHdjIC1sIA0KICAgMjMyMjENCg0KICAgIHJlY2VudGx5IHdlIGRvIHNv
bWUgcGVyZm9ybWFuY2Ugb3B0aW1pemUgYW5kIHByb21vdGUgdGhpcyBjb25uZWN0IGxpbWl0IHRv
IDI4MDAwKyBvciAzMDAwMCsuDQogIEJ1dCB3ZSBmaW5kIEZyZWVic2QgaGFzIGEgbGltaXQgdGhh
dCB0aGlzIGh1Z2Ugb25saW5lIG51bWJlciB3aWxsIHRha2UgMjgwMDArIGZkLCBhbmQgYnNkIEZJ
TEUgKiBz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BsYW4gdG8gcmVzb2x2ZWQgdGhpcyBzdWZmZXJpbmcg
dGhpbmcuDQogIExvTCwgdGhhbmsgeW91ICEhISEhDQoNCnlvdXJzIHNpbmNlcmVseQ0KICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgd2luc29uIHNoZW5nDQoNCg0Kd2luc29u
IHNoZW5nDQo=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2016122211530807976976>