9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: [9fans] /proc/$pid/fd not mp safe
Date: Sat, 29 Aug 2009 23:38:45 -0400	[thread overview]
Message-ID: <3e57a559d3d64070f950954a2b0c98e9@quanstro.net> (raw)

i haven't dug into the code yet, but it appears that /proc/fd
isn't fd safe.  note fd 7:

minooka; cat /proc/xxxxxxx/fd
/
  0 r  M   71 (0000000000000001   0 00)  8192       37 /mnt/term/dev/cons
  1 w  c    0 (000000000000000a   0 00)     0   189454 /dev/null
  2 w  c    0 (000000000000000a   0 00)     0   189454 /dev/null
  3 r  /    0 (0000000000000000   0 80)     0      776 /
  4 r  M   55 (0000000000000ade  27 80)  8192     1651 /mnt
  5 r  M   71 (0000000000000000   0 80) 65512     2939 /mnt/term
  6 r  M   71 (00000000000005c6  89 80)  8192     3683 /mnt/term/386
  7 r  M   71 (00000000000005d5 340 80)  8192    1626erm/386/include
  8 r  M   71 (00000000000007e7  5 80)  8192        0 /mnt/term/386/include/ape

- erik



                 reply	other threads:[~2009-08-30  3:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=3e57a559d3d64070f950954a2b0c98e9@quanstro.net \
    --to=quanstro@quanstro.net \
    --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).