Messages in this thread | | | From | Tristan Wibberley <> | Subject | Re: New system call wanted: fdreopen | Date | Sun, 9 Dec 2012 17:18:23 +0000 (UTC) |
| |
On Sun, 09 Dec 2012 11:27:46 -0500, Theodore Ts'o wrote:
> On Sun, Dec 09, 2012 at 03:03:30PM +0000, Tristan Wibberley wrote: >> >> - /proc/self/fd/* does not solve this problem because the file might no
...
> Actually, /proc/self/fd/* _will_ work. When you do a ls -l, it looks > like a symlink, but the files in /proc/self/fd (and /proc/<pid>/fd more > generally) are magic. If you open files in /proc/<pid>/fd/*, it will do > what you want.
Oh! Cool! By reading how to solve this class of problem with google search results I couldn't find any indication that /proc/pid/fd/* worked differently than a symlink.
Thanks for your quick reply.
-- Tristan
| |