Changes between Initial Version and Version 6 of Ticket #2416
- Timestamp:
- 02/21/25 07:45:11 (44 hours ago)
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 3 3 I've connected to the running mc process with gdb, here's the backtrace: 4 4 5 {{{ 5 6 Program received signal SIGINT, Interrupt. 6 7 0x400432f0 in _nc_wgetch () from /usr/lib/libncursesw.so.5 … … 18 19 #9 0x00072578 in do_nc () at main.c:1798 19 20 #10 0x00072c38 in main (argc=3, argv=0xbeb6e5a4) at main.c:2048 21 }}} 20 22 21 23 So, mc is still trying to read the keyboard, despite the fact that stdin has been already closed. … … 27 29 then in getch_with_delay() it gets this: 28 30 31 {{{ 29 32 657 c = get_key_code (0); 30 33 658 if (c != -1) … … 32 35 660 /* Failed -> wait 0.1 secs and try again */ 33 36 661 try_channels (1); 37 }}} 34 38 35 39 so it calls getch() again and again, despite the fact that getch() returns EOF.