[comp.unix.questions] Need help with RPC server?

tony@artecon.artecon.UUCP (Anthony D. Parkhurst) (08/20/87)

I am using a Sun with OS version 3.2

I created a server which is invoked thru RPC, then it passes a
request onto a socket for an application to act upon.

The application received the request (from the socket), then takes over 
the terminal, does some work and returns results...

The problem is that the RPC to IPC server (which does no I/O with
the terminal) somehow prevents the application from using the terminal.

Specifically, the application hangs on and IOCTL(0,TIOCSETC,&arg) call.

If I invoke the application any other way or even from the server before
it calls registerrpc and svc_run, then it works just fine.

Any ideas on this?

Note:  These are not general servers, but only invoked under a single
user's environment.  And yes, everything else seems to work fine,
the RPCtoIPC server gets the proper request, sends it over the socket
and just waits for a result (recv() call).  The application gets the
proper request and starts up, and when it gets to that IOCTL call, it hangs.

Thanx in advance.

-- 
**************** Insert 'Standard' Disclaimer here:  OOP ACK! *****************
*  Tony Parkhurst -- {hplabs|sdcsvax|ncr-sd|hpfcla|ihnp4}!hp-sdd!artecon!adp  *
*                -OR-      hp-sdd!artecon!adp@nosc.ARPA                       *
*******************************************************************************