9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Russ Cox <rsc@swtch.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] self inflicted gunshot wound
Date: Wed,  8 Apr 2009 13:33:50 +1000	[thread overview]
Message-ID: <dd6fe68a0904072033g772a07dmaa16b7963e3ad207@mail.gmail.com> (raw)
In-Reply-To: <1302e45ee0d510249bd57bef3594d66c@quanstro.net>

> acid: *(*plumbpackattr:s\s)
> filetype=mail sender=xxxx@xxxx.xxx length=8749 mailtype=delete
> date='Sun Mar4de7153cecd4a9b45aead1clfs
> digest=aff98fb56526d94ab768adbc93d12d989a11ed53

> several were waiting on something else to happen; they were
> sleeping waiting for an exclusive-open file.  the 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


  reply	other threads:[~2009-04-08  3:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-07 14:16 erik quanstrom
2009-04-08  1:48 ` Russ Cox
2009-04-08  2:59   ` erik quanstrom
2009-04-08  3:33     ` Russ Cox [this message]
2009-04-08  3:36       ` erik quanstrom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dd6fe68a0904072033g772a07dmaa16b7963e3ad207@mail.gmail.com \
    --to=rsc@swtch.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).