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.194632.9390@cbnewsl.att.com> Date: 27 Jul 90 19:46:32 GMT References: <1990Jul25.045439.19914@clark.uucp> Distribution: usa Organization: AT&T Bell Laboratories Lines: 11 In article <1990Jul25.045439.19914@clark.uucp>, ade@clark.edu (Adrian Miranda) writes: > Pardon me if this is a dumb question, I'm trying to learn about > streams/TLI on System V r3.2. In my function (actually it's not mine, > I'm porting smail3.1 to esix), I t_alloc a T_CALL structure. I then > 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 > the end of this function, even though the file descriptor will > continue to be used? Yes.