lkml.org 
[lkml]   [2002]   [Jan]   [19]   [last100]   RSS-feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Complete thread (EXPERIMENTAL)
/
SubjectRe: rm-ing files with open file descriptors
FromXavier Bestel <>
Date19 Jan 2002 13:22:41 +0100
Digg This
On Sat, 2002-01-19 at 13:16, Matthias Schniedermeyer wrote:
Well no. new_fd will refer to a completely new, empty file which has no relation to the old file at all.

There is no way to recreate a file with a nlink count of 0, well that is until someone adds flink(fd, newpath) to the kernel.

This *might* work:

link("/proc/self/fd/40", newpath);

cat /proc/<id>/fd/<nr> > whatever
actually works.

Once it's unliked ? I doubt it.

\
ISP Services
Valid XHTML 1.0!\ /
Valid CSS! Last update: 2005-03-22 12:15    [W:0.663 / U:0.110 seconds]
©2003-2005 Jasper Spaans