[問題] 請問要怎麼砍掉沒 close 的 file description ??

看板LinuxDev作者時間14年前 (2010/02/11 14:42), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串1/1
大家好... 我最近正在寫一個有用到 socket 的程式。因為不斷的 debug -> 重跑。 後來出現了 "Too many open file (EMFILE)" 的錯誤。 google 以後發現是因為我開 socket 都沒有關。 然後我用 lsof 發現真的有超多 file 沒有關的。 可是我該怎麼用 command line 把他們關掉呢? 因為原來的程式都已經結束了,所以我也不知道他們的 file description..... 還請大大們多指教了 謝謝 <(_ _)> -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 155.99.196.50

02/11 17:56, , 1F
該不會是你的 socket server 沒關 fd, 你誤以為是 client
02/11 17:56, 1F
文章代碼(AID): #1BSwQuoA (LinuxDev)