Passing File Descriptor between Processes HPUX
Posted on 2002-03-20
I need the ability to pass a open file descriptor (or to be more precise, a socket descriptor) from one process to another.
I am on HPUX 11 using GCC as my compiler. In the books Ive read, they suggest using ioctl to send file descriptors over stream pipes. Problem is once I open a pipe, and try to call ioctl using I_SENDFD, I get an error 25 NOTTY (Not valid operation on this device).
1) Does anyone have a better method? or
2) Can someone point me in some sort of direction to help me fix this problem?
P.S. - I get the same error using the ANSI CC compiler we purchased from HP.