On Tue, Mar 31, 2009 at 9:19 AM, Manvendra Bhangui <mbhan...@gmail.com>wrote:
> On Mon, Mar 30, 2009 at 11:06 PM, Rick Romero <r...@havokmon.com> wrote: > >> Programming question - if I write to fd0 (STDOUT), and then exec() a >> process, will that child process see the data I put in fd0 from the parent? >> Maybe I'll just try that as well. >> > > make fd0 a file (using makeseekable) and do lseek (0, 0L, SEEK_SET); > > Attached is a function which can make stdin seekable. > The function to make seekable is already present in vpopmail library as MakeSeekable(). You should use that instead of my function (which will give errors on compilation). !DSPAM:49d1948232682864318272!