Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Aug 2010 22:20:03 GMT
From:      Garrett Cooper <yanegomi@gmail.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/150095: [patch] Account for reserved itimers which shouldn't count against _SC_TIMER_MAX
Message-ID:  <201008292220.o7TMK3lC076678@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/150095; it has been noted by GNATS.

From: Garrett Cooper <yanegomi@gmail.com>
To: bug-followup@FreeBSD.org, gcooper@FreeBSD.org
Cc:  
Subject: Re: kern/150095: [patch] Account for reserved itimers which shouldn't
 count against _SC_TIMER_MAX
Date: Sun, 29 Aug 2010 15:17:44 -0700

 --001636c5b05f914ff5048efdb74b
 Content-Type: text/plain; charset=ISO-8859-1
 
     Sorry... some noise from nanosleep was in the last patch (another
 bug I filed -- kern/149980). This patch only deals with the items I
 described.
 Thanks,
 -Garrett
 
 --001636c5b05f914ff5048efdb74b
 Content-Type: text/plain; charset=US-ASCII; name="account-for-reserved-itimers.diff.txt"
 Content-Disposition: attachment; 
 	filename="account-for-reserved-itimers.diff.txt"
 Content-Transfer-Encoding: base64
 X-Attachment-Id: f_gdggn4j40
 
 SW5kZXg6IHN5cy9rZXJuL2tlcm5fdGltZS5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHN5cy9rZXJuL2tlcm5f
 dGltZS5jCShyZXZpc2lvbiAyMTE3OTQpCisrKyBzeXMva2Vybi9rZXJuX3RpbWUuYwkod29ya2lu
 ZyBjb3B5KQpAQCAtOTk1LDcgKzk5NSw4IEBACiAKIAlQUk9DX0xPQ0socCk7CiAJaWYgKHByZXNl
 dF9pZCAhPSAtMSkgewotCQlLQVNTRVJUKHByZXNldF9pZCA+PSAwICYmIHByZXNldF9pZCA8IDMs
 ICgiaW52YWxpZCBwcmVzZXRfaWQiKSk7CisJCUtBU1NFUlQocHJlc2V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ZWQgYnkgc2V0
 aXRpbWVyICovCisjZGVmaW5lIFRJTUVSX1JFU0VSVkVECTMKICNkZWZpbmUJVElNRVJfTUFYCTMy
 CiAKICNkZWZpbmUJSVRJTUVSX0xPQ0soaXQpCQltdHhfbG9jaygmKGl0KS0+aXRfbXR4KQpAQCAt
 OTQsNyArOTYsNyBAQAogCXN0cnVjdCBpdGltZXJsaXN0CWl0c192aXJ0dWFsOwogCXN0cnVjdCBp
 dGltZXJsaXN0CWl0c19wcm9mOwogCVRBSUxRX0hFQUQoLCBpdGltZXIpCWl0c193b3JrbGlzdDsK
 LQlzdHJ1Y3QgaXRpbWVyCQkqaXRzX3RpbWVyc1tUSU1FUl9NQVhdOworCXN0cnVjdCBpdGltZXIJ
 CSppdHNfdGltZXJzW1RJTUVSX1JFU0VSVkVEICsgVElNRVJfTUFYXTsKIH07CiAKIHN0cnVjdAlr
 Y2xvY2sgewo=
 --001636c5b05f914ff5048efdb74b--



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