Yes you are correct and I over-simplified, Linux::Fuser indeed does compare the device numbers of the file as well as the inode number:
You had me worried there for a second ;-)if (my @statinfo = stat $fd) { if (($dev == $statinfo[0]) && ($ino == $statinfo[1]) ) {
/J\
In reply to Re^4: How to detect if file is in use?
by gellyfish
in thread How to detect if file is in use?
by blazar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |