[SunHELP] Need help on RPC with inetd problem

sunhelp at sunhelp.org sunhelp at sunhelp.org
Thu Oct 25 13:37:28 CDT 2001


--openmail-part-372d22d9-00000002
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit



   -----Original Message-----
   From:       Li, Gen 
   Sent:       Wednesday, October 24, 2001 12:21 PM
   To:         'sunhelp at sunhelp.org'; 'rescue at sunhelp.org'
   Cc:         Li, Gen
   Subject:    
   
   Sunhelpers and rescuers:
   
   I have a RPC program which is generated by using "rpcgen -I -b" and
   compiled with "gcc -lnsl -lsocket". The RPC server is working fine if
   I start it on the command line, but when I tried to start it by inetd
   (put into the /etc/inetd.conf file with: "536870920/2 stream rpc/tcp
   nowait root /usr/local/bin/rpg_svc rpg_svc), it failed. The syslog
   message shows that: "rpg[2195]: [ID 952037 daemon.error]
   svc_tli_create: could not do t_sync: Illegal file descriptor;
   rpg[2195]: [ID 659090 daemon.error] cannot create tcp service.". This
   has been tested on both Solaris 2.6 and 8. You help is appriciated.
   
   Thanks,
   Gen Li
   Office: 201-974-3291
   Page: 1-800-pagemci  pin: 168-6539
   1919 Park Ave.
   Weehawken, NJ 07086
   
   
--openmail-part-372d22d9-00000002
Content-Type: application/rtf; name="BDY.RTF"
Content-Disposition: attachment; filename="BDY.RTF"
Content-Transfer-Encoding: base64

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZGVmZjBcZGVmbGFuZzEwMzN7XGZvbnR0Ymx7XGYw
XGZzd2lzc1xmY2hhcnNldDAgQXJpYWw7fXtcZjFcZm5pbFxmcHJxMiBNUyBTYW5zIFNlcmlm
O317XGYyXGZtb2Rlcm5cZnBycTEgQ291cmllciBOZXc7fXtcZjNcZm1vZGVyblxmcHJxMVxm
Y2hhcnNldDAgQ291cmllciBOZXc7fX0NCntcY29sb3J0YmwgO1xyZWQwXGdyZWVuMFxibHVl
MjU1O30NClx2aWV3a2luZDRcdWMxXHBhcmRcY2YxXGxhbmcxMDI0XGY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