[Info-vax] Sharing a BG device with another user process

Jim mckinneyj at saic.com
Fri Dec 20 12:13:55 EST 2013


On Friday, December 20, 2013 10:32:09 AM UTC-5, Jeffrey H. Coffield wrote:
> I am reviewing the code in our JDBC driver for RMS and feel that I am 
> missing something in the log in sequence. I have a listener process that 
> accepts a network connection, authenticates the username/password and 
> starts a detached network process under the users account. The problem 
> (I think) is that in order for the server process running under the 
> users account to assign a channel to SYS$NET, I have to install the 
> server image with SHARE privilege. Otherwise I get a SYSTEM-W-DEVALLOC 
> error on the assign.
> 
> It is important that the server run in the context of the user as our 
> driver provides a method to read logicals and symbols set in the users 
> LOGIN.COM.
> 
> Is there a "correct" way to do this (like FTP or Telnet)? I realize that 
> some of the code is undocumented.
> 

Try a google search of comp.os.vms for combinations of "socket handoff", (MultiNet) "SO_SHARE", and (HP-TCP) "TCPIP$C_AUXS" (or web in general with these strings paired with "VMS"). You'll want to hand the socket off from originator to another process rather than share it. The methodology will depend somewhat on which stack you're using but the usual strategy is for the originator to mark the socket for continued use and then close it - and signal that other process to open it. 



More information about the Info-vax mailing list