9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] /proc/$pid/fd not mp safe
@ 2009-08-30  3:38 erik quanstrom
  0 siblings, 0 replies; only message in thread
From: erik quanstrom @ 2009-08-30  3:38 UTC (permalink / raw)
  To: 9fans

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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-08-30  3:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-30  3:38 [9fans] /proc/$pid/fd not mp safe erik quanstrom

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).