t_free before closing descriptor?

stephen.a.rago sar0 at cbnewsl.att.com
Sat Jul 28 05:46:32 AEST 1990


In article <1990Jul25.045439.19914 at clark.uucp>, ade at 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.



More information about the Comp.unix.questions mailing list