Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!ogicse!clark!ade From: ade@clark.edu (Adrian Miranda) Newsgroups: comp.unix.questions Subject: t_free before closing descriptor? Message-ID: <1990Jul25.045439.19914@clark.uucp> Date: 25 Jul 90 04:54:39 GMT Sender: ade@clark.uucp (Adrian Miranda) Distribution: usa Organization: Clark College, Vancouver, Wa. USA Lines: 13 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? It appears that the structure is no longer needed since smail will not be making any more TLI calls on the descriptor. But perhaps something is going on behind the scenes? Adrian Miranda uunet!clark!ade