From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <1302e45ee0d510249bd57bef3594d66c@quanstro.net> References: <1302e45ee0d510249bd57bef3594d66c@quanstro.net> Date: Wed, 8 Apr 2009 13:33:50 +1000 Message-ID: Subject: Re: [9fans] self inflicted gunshot wound From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Topicbox-Message-UUID: d6084d7e-ead4-11e9-9d60-3106f5b1d025 > acid: *(*plumbpackattr:s\s) > filetype=3Dmail sender=3Dxxxx@xxxx.xxx length=3D8749 mailtype=3Ddelete > date=3D'Sun Mar4de7153cecd4a9b45aead1clfs > digest=3Daff98fb56526d94ab768adbc93d12d989a11ed53 > several were waiting on something else to happen; they were > sleeping waiting for an exclusive-open file. =C2=A0the only reason > i mentioned it is that may have been 5 minutes between the > time that plumber tried to write the message and when it > could be delivered. aha. plumbunpackattr is also using attrbuf. that explains it. a new plumbing message came in at the same time an old one was being delivered. this can only happen if a reader gets behind and is catching up while new messages are still coming in. i would put a lock around the use of attrbuf in both plumbpackattr and plumbunpackattr. russ