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 via email to