Hi Group,

Does anyone know the reason when running tsocmd to start a Rexx program with 
the BPXWRFD=YES environment variable set, the child process only inherits open 
file descriptors 10-99?

I've done a lot of searching, and the only place I found this mentioned was in 
the Environment Variables section of the USS Command Reference:

BPXWRFD
Specifying YES in a REXX program before the TSO process is started causes the 
TSO process to inherit open file descriptors 10 through 99.

This causes programs that switched from /bin/tso to /bin/tsocmd to break.

What would be the proper way to code around this?  From what I understand you 
cannot specify which file descriptor you want to use when creating a socket.  
The only way around this that I could find would be to use the dup2() function 
where one can specify which fd they want.  Is that about right?

Any feedback is welcome. :)

Kind regards,
Lindy

(x-posted to MVS-OE but doesn't appear to be much life over there)


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to