[SERVER-3897] shell prompt does not work well in some debuggers (e.g. eclipse), 'enter' triggers pegged cpu Created: 19/Sep/11  Updated: 11/Jul/16  Resolved: 19/Sep/11

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: 2.1.0

Type: Bug Priority: Minor - P4
Reporter: Antoine Girbal Assignee: Antoine Girbal
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

When trying to debug shell in eclipse, hitting 'enter' does not register the line and triggers 100% CPU.



 Comments   
Comment by auto [ 19/Sep/11 ]

Author:

{u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

Message: SERVER-3897: shell prompt does not work well in some debuggers (e.g. eclipse), 'enter' triggers pegged cpu
Branch: master
https://github.com/mongodb/mongo/commit/a00f768a98f801c7c8535771bf9e8d7fd7085f9f

Comment by Antoine Girbal [ 19/Sep/11 ]

there are actually 2 issues:

  • number of columns in terminal is 0, which triggers busy loop
  • 'enter' only adds the '\n' character, but code is looking for '\r'
Generated at Thu Feb 08 03:04:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.