View Single Post
  #3   (View Single Post)  
Old 15th April 2009
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

Hmm, if I mount an fdescfs on /dev/fd, then flick-off the close on exec flag & exec the program on /dev/fd/N, it works.... but the file descriptor is an empty file rather then the content of my temporary file.... which was written out through the open file handle.

Even worse, I can !cat /tmp/thetempfile in ed, and see the content it is supposed to have from opening /dev/fd/N lol.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote