- 论坛徽章:
- 7
|
- r2007@www fd $ (ls -l /dev/fd/;lsof -d 0-9)|cat
- total 0
- lrwx------ 1 r2007 users 64 Jun 6 08:46 0 -> /dev/pts/0
- l-wx------ 1 r2007 users 64 Jun 6 08:46 1 -> pipe:[3273895]
- lrwx------ 1 r2007 users 64 Jun 6 08:46 2 -> /dev/pts/0
- lr-x------ 1 r2007 users 64 Jun 6 08:46 3 -> /proc/29222/fd
- COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
- bash 22459 r2007 0u CHR 136,0 802 /dev/pts/0
- bash 22459 r2007 1u CHR 136,0 802 /dev/pts/0
- bash 22459 r2007 2u CHR 136,0 802 /dev/pts/0
- bash 29220 r2007 0u CHR 136,0 802 /dev/pts/0
- bash 29220 r2007 1w FIFO 0,5 3273895 pipe
- bash 29220 r2007 2u CHR 136,0 802 /dev/pts/0
- cat 29221 r2007 0r FIFO 0,5 3273895 pipe
- cat 29221 r2007 1u CHR 136,0 802 /dev/pts/0
- cat 29221 r2007 2u CHR 136,0 802 /dev/pts/0
- lsof 29223 r2007 0u CHR 136,0 802 /dev/pts/0
- lsof 29223 r2007 1w FIFO 0,5 3273895 pipe
- lsof 29223 r2007 2u CHR 136,0 802 /dev/pts/0
- lsof 29223 r2007 3r DIR 0,2 0 1 /proc
- lsof 29223 r2007 4r DIR 0,2 0 1915158536 /proc/29223/fd
- lsof 29223 r2007 5w FIFO 0,5 3273915 pipe
- lsof 29223 r2007 6r FIFO 0,5 3273916 pipe
- lsof 29224 r2007 4r FIFO 0,5 3273915 pipe
- lsof 29224 r2007 7w FIFO 0,5 3273916 pipe
- r2007@www fd $
复制代码
根据以上的实测
pipe:[3273895]和lsof中的节点号是一样的,难道是巧合? |
|