[comp.unix.questions] smart multiport cards and dropping DTR fix!

dbin@norsat.UUCP (Dave Binette) (12/17/89)

Some multiport cards don't want to drop DTR as readily as "dumb" cards.
I can share my experiences with a COMPUTONE Intelliport 8 on a
Compaq 386-20 (early model)

sysname=XENIX
release=2.3.1
version=SysV
machine=i80386

Adding the following to the logoff procedure on my XENIX BBS now causes
DTR to drop as required, fortunately its completely agreeable with
the standard ports and is probably the method of choice anyway.

/* after flushing buffers SETAW and restoring ioctl etc... */
    fclose(stdin);
    fclose(stdout);
    fclose(stderr);
    sleep(2);
    exit(n);

My guess is the smart card buffers out and returns control to getty
so quickly that either DTR wasn't dropped or was dropped so briefly
that the modem ignored it.

---
uucp:  {uunet,ubc-cs}!van-bc!norsat!dbin | 302-12886 78th Ave
bbs:   (604)597-4361     24/12/PEP/3     | Surrey BC CANADA
voice: (604)597-6298     (Dave Binette)  | V3W 8E7              */