Date: Sun, 6 Dec 2015 16:54:38 +0800 From: "=?utf-8?B?R2F2aW4gTXU=?=" <gavin.mu@qq.com> To: "=?utf-8?B?S29uc3RhbnRpbiBCZWxvdXNvdg==?=" <kostikbel@gmail.com> Cc: "=?utf-8?B?ZnJlZWJzZC1zdGFibGU=?=" <freebsd-stable@freebsd.org> Subject: Re: application coredump behavior differences between FreeBSD 7.0andFreeBSD 10.1 Message-ID: <tencent_215F812C18B67A5703B4A4F3@qq.com> In-Reply-To: <tencent_24B00D6972156E7D55E1566E@qq.com> References: <tencent_16AD659A73E203C91A0E112F@qq.com> <20151204094550.GO2405@kib.kiev.ua> <tencent_532DCE3C7376849271198715@qq.com> <20151205142403.GE2202@kib.kiev.ua> <tencent_24B00D6972156E7D55E1566E@qq.com>
next in thread | previous in thread | raw e-mail | index | archive | help
SGksIGtpYiwNCg0KDQpJdCBpcyByZWFsbHkgcmVsYXRlZCB3aXRoIG1hZHZpc2UgYmVoYXZp b3IsIEkgY2hlY2tlZCBjb2RlIHJlbGF0ZWQgd2l0aCBNQURWX1NFUVVFTlRJQUwsIGFuZCBp dCBzZWVtcyB0aGVyZSBpcyBzb21ldGhpbmcgd3Jvbmcgd2l0aCB2bV9mYXVsdCgpIG9mIEZy ZWVCU0QgMTAuMS4NCkkgZGlkIGEgc2ltcGxlIHBhdGNoOg0KZGlmZiAtLWdpdCBhL3N5cy92 bS92bV9mYXVsdC5jIGIvc3lzL3ZtL3ZtX2ZhdWx0LmMNCmluZGV4IGI1YWM1OGYuLjEzNWZj NjcgMTAwNjQ0DQotLS0gYS9zeXMvdm0vdm1fZmF1bHQuYw0KKysrIGIvc3lzL3ZtL3ZtX2Zh dWx0LmMNCkBAIC05NjYsNiArOTY2LDggQEAgdm5vZGVfbG9ja2VkOg0KICAgICAgICAgKi8N CiAgICAgICAgaWYgKGhhcmRmYXVsdCkNCiAgICAgICAgICAgICAgICBmcy5lbnRyeS0+bmV4 dF9yZWFkID0gZnMucGluZGV4ICsgZmF1bH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