lkml.org 
[lkml]   [2012]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: New system call wanted: fdreopen
Date
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



\
 
 \ /
  Last update: 2012-12-09 18:41    [W:0.078 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site