Changeset 4477


Ignore:
Timestamp:
06/06/08 04:33:59 (5 years ago)
Author:
werner
Message:

neocon used to hang when USB just dropped, e.g., when using u-boot via
ttyACM*, when executing the "reset" command. This small change makes
neocon detect the condition, and close the session.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • developers/werner/neocon/neocon.c

    r4227 r4477  
    220220  
    221221    got = read(in, buffer, single ? 1 : sizeof(buffer)); 
    222     if (got < 0) 
     222    if (got <= 0) 
    223223        return 0; 
    224224    if (from_user) 
Note: See TracChangeset for help on using the changeset viewer.