Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Could you not just hardlink to the /proc/<xxx>/fd/<y> file descriptor? I haven't tried this, but considering you can `cp` from the open descriptor to a new file, I should also think you could make a new hardlink to that same descriptor.


/proc is its own filesystem so its 'inodes' are incompatible with whatever FS your disk is on.


Good catch. My hardcore Unix-fu is still lacking in places... =\


yes, you can. and this is better than copying.


whoops, sorry, on crack. You can't after it's been deleted.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: