Re: scotty/tkined on SCO Unix

Erik Schoenfelder (schoenfr@sol)
Fri, 8 Apr 94 15:38:07 +0200

Hi!

> "S. Kent Hamilton" <kenth@scscom.com>:

SKH> I just started on it and I have tkined working, but I need to do some
SKH> work with it to get the Unix domain stuff working. scotty works but
SKH> I can't run the two together because of the unix_domain sockets.

If you have got some replies or a solution, please let us know, to put
a fix or workaround into tkined/scotty, if possible.

If not, let me ask about further informations:

tkined opens a socketpair to communicate with scotty (and possibly
other workers). I guess these are the unix domain sockets, causing the
trouble.

This is done in method.c of tkined:

> if (socketpair (AF_UNIX, SOCK_STREAM, 0, object->xv) < 0) {
> object->xv[0] = object->xv[1] = -1;
> interp->result = "unable to get socket pair";
> return TCL_ERROR;
> }

For a SunOS only the AF_UNIX domain is supported and i think thats
true for other bsd4.2 based Unix'es too. But maybe Sco Unix can use
something else (AF_INET or ...) ?

I'm quite not familar with Sco Unix. Maybe the manpage of socketpair()
gives a hint about the problem and a possible solution ?

Maybe a workaroud would be a socketpair() replacement which creates
two inet domain sockets, bound to diffrent ports, connects them via
accept/connect and uses this connection after a fork. But i am not
sure, if this would be usable.

Erik

--
Tkined is written by Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)