Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!att!cbnewsl!sar0 From: sar0@cbnewsl.att.com (stephen.a.rago) Newsgroups: comp.unix.questions Subject: Re: t_free before closing descriptor? Message-ID: <1990Jul27.195818.10014@cbnewsl.att.com> Date: 27 Jul 90 19:58:18 GMT References: <1990Jul25.045439.19914@clark.uucp> <1601@excelan.COM> Distribution: usa Organization: AT&T Bell Laboratories Lines: 18 In article <1601@excelan.COM>, murthy@la.excelan.com (M.D. Srinivas Murthy) writes: > In article <1990Jul25.045439.19914@clark.uucp> ade@clark.edu (Adrian Miranda) writes: > >t_connect, pop the timod module and push the tirdwr module. Finally, > >the file descriptor is returned to the caller, which uses it to do > >whatever. What I'm wondering is, can I t_free the T_CALL structure at > > Once you push the tirdwr module, you cannot use any TLI calls on that > descriptor. If you use, tirdwr module generates a fatal error, EPROTO. Not strictly true. t_free doesn't do anything except free the previously allocated space. > Is it necessary to pop the timod module before you push the tirdwr module? Only if you want to avoid the overhead of an additional module on the stream. Steve Rago sar@attunix.att.com