Date: Mon, 29 May 2006 15:25:59 +0200 From: "Attilio Rao" <asmrookie@gmail.com> To: "Robert Watson" <rwatson@freebsd.org>, freebsd-atm@freebsd.org, freebsd-arch@freebsd.org Subject: Re: Locking netatm Message-ID: <3bbf2fe10605290625p63221f95i6e17466ab5db6812@mail.gmail.com> In-Reply-To: <20060528230058.GA836@lucy.pool-70-17-33-65.pskn.east.verizon.net> References: <20060528230058.GA836@lucy.pool-70-17-33-65.pskn.east.verizon.net>
next in thread | previous in thread | raw e-mail | index | archive | help
MjAwNi81LzI5LCBTa2lwIEZvcmQgPHNraXAuZm9yZEB2ZXJpem9uLm5ldD46Cgpbc25pcF0KCj4g U28gbXkgcXVlc3Rpb24gaXMsIHdlcmUgbmV0d29yayBpbnRlcnJ1cHRzIGRpc2FibGVkIHdoZW4g bXVja2luZwo+IHdpdGggdGhlIGF0bV90aW1lcSBsaXN0IGJlY2F1c2UgYSBnZW5lcmF0ZWQgaW50 ZXJydXB0IGNhbiBtb2RpZnkKPiBzdHJ1Y3R1cmVzIHdpdGhpbiB0aGUgbGlzdD8gIFRoaXMgdXNl IGlzIHByb2JhYmx5IHZlcnkKPiBuZXRhdG0tc3BlY2lmaWMuICBJJ20gc3RpbGwgc3R1ZHlpbmcg dGhlIHRpbWVvdXQgY29kZSB0bwo+IHVuZGVyc3RhbmQgd2hhdCBpdCdzIGRvaW5nLgoKVGhpcyBp cyB0aGUgd2hvbGUgcG9pbnQgb2YgbG9ja2luZyBwcmltaXRpdmVzOiBhdG9taWMgb3BlcmF0aW9u cy4KSW50ZXJydXB0aW5nIHRoZSBjb2RlIHdoaWxlIGdldHRpbmcgYSBsb2NrIGNvdWxkIHJlc3Vs dCBpbiBhIHJhY2UgY29uZGl0aW9uLgoKSWYgeW91IGhhdmUgdG8gcHJvdGVjdCBkYXRhcyB0aHJv dWdoIGEgVFNMIChUZXN0IGFuZCBTZXQgTG9jaykKb3BlcmF0aW9uLCB3aGF0IGhhcHBlbiBpcyBz b21ldGhpbmc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