Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 33f6282e461e9ce6e959d1bebfde2e4f6b2cc08f
Ticket: 525783ffffffffffffffffffffffffffffffffff
Need optional full flush on [exit] for serial
User & Date: schroedter on 2002-03-06 19:48:52
Changes

  1. icomment:
    Logged In: YES 
    user_id=99573
    
    This problem was probably introduced by two changes:
    1. stdin/stdout are now handled by the TTY driver
    2. The TIP#35 changes (Add serial port handshake support)
    
    There is no doubt, that TCL-exit should not stall if a serial port output is blocked.
    This can happen with handshake support. 
    This could also happen even before the TIP#35 changes, when the serial port handshake is activated by 
    using "stty" settings.
    
    At exit the channel driver sets all unflushed channels to blocking mode and waits until the output is flushed 
    (maybe forever). That's why the serial port driver now calls "tcflush".
    For a serial port this is okay, for stdin/stdout this maybe bad.
    
    Anyway Tcl's behaviour on exit needs further discussion.
    
    
    
  2. login: "schroedter"
  3. mimetype: "text/plain"
  4. username: "schroedter"