[comp.sys.mac.programmer] leaving serial driver open

ldo@peace.waikato.ac.nz (Lawrence D'Oliveiro) (01/19/90)

Alain de Cheveigne asked in the above article if it's OK to leave
the serial driver open when your program exits.

I'm pretty sure the answer is no. I've just been running a comms application
which shall remain unnamed*, and which appears to leave the serial
driver open on quitting. I then tried running the "Sample" application
that comes with the Communications Toolbox, and it wouldn't let me
open a connection--said the port was in use.

Actually, there is a way to force the connection to be opened, but
you see the problem--the only way to coordinate access to the serial
ports in a *safe* fashion is if those applications that *don't* use the
Comms Toolbox (i e they only know about the serial driver) close the
driver when they've finished with it.

*All right, it's AppleLink 4.0.