Changes between Initial Version and Version 6 of Ticket #2416


Ignore:
Timestamp:
02/21/25 07:45:11 (44 hours ago)
Author:
zaytsev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2416

    • Property Status changed from new to closed
    • Property Component changed from mc-core to mc-tty
    • Property Version changed from 4.7.4 to
    • Property Branch state changed from to no branch
    • Property Milestone changed from 4.7 to
    • Property Resolution changed from to duplicate
  • Ticket #2416 – Description

    initial v6  
    33I've connected to the running mc process with gdb, here's the backtrace: 
    44 
     5{{{ 
    56Program received signal SIGINT, Interrupt. 
    670x400432f0 in _nc_wgetch () from /usr/lib/libncursesw.so.5 
     
    1819#9  0x00072578 in do_nc () at main.c:1798 
    1920#10 0x00072c38 in main (argc=3, argv=0xbeb6e5a4) at main.c:2048 
     21}}} 
    2022 
    2123So, mc is still trying to read the keyboard, despite the fact that stdin has been already closed. 
     
    2729then in getch_with_delay() it gets this: 
    2830 
     31{{{ 
    2932657             c = get_key_code (0); 
    3033658             if (c != -1) 
     
    3235660             /* Failed -> wait 0.1 secs and try again */ 
    3336661             try_channels (1); 
     37}}} 
    3438 
    3539so it calls getch() again and again, despite the fact that getch() returns EOF.