[問題] /dev/fd v.s /proc/PID/fd

看板LinuxDev作者 (我住5F)時間15年前 (2010/11/11 19:13), 編輯推噓1(102)
留言3則, 2人參與, 最新討論串1/1
各位高手: 請問為什麼我用 fopen(), pipe() 打開的 fd, 只會出現在 /proc/PID/fd 而不會出現在 /dev/fd ?? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 192.251.226.206

11/12 00:26, , 1F
出現在 /dev/fd 的理由是?
11/12 00:26, 1F

11/12 01:10, , 2F
/dev/fd裡面是不是只有那個process自己看得到?
11/12 01:10, 2F

11/12 19:25, , 3F
另外下 command line 看到的是 bash 又不是程式看到的
11/12 19:25, 3F
文章代碼(AID): #1Csy_EOC (LinuxDev)