QNX RTOS v4 Knowledge Base
  
QNX RTOS v4 Knowledge Base
  
    
      | 
          
            | Title | Use of qnx_fd_attach() |  
            | Ref. No. | QNX.000004149 |  
            | Category(ies) | Development |  
            | Issue | Can qnx_fd_attach() be used to open a duplicate fd to another process if the calling process knows the pid and fd used by the other process? 
 
 
 
 |  
            | Solution | No it can't, because fd's can only be inherited, you can't pass them to another process.  The other process would need to do an open() on the file. |  |