Projects > cpp > Issues > Bug #4062

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

CCConsole thread hang

Bug #4062 [Closed]
heliclei2013@gmail.com 2014-02-18 07:40 . Updated about 2 years ago

ssize_t Console::readline(int fd, char* ptr, int maxlen)
{
ssize_t n, rc;
char c;

for( n=1; n

//-------------------------------------------------------------------2
} else if( rc == 0 ) {
return 0;
} else if( errno == EINTR ) {
continue;
} else {
return -1;
}
}

*ptr = 0;
return n;

}

if place line 1 to line 2
the CConsole main loop will hang.

walzer@cocos2d-x.org 2014-10-08 02:48

Redmine issue system is closed, we are using github issue system instead.

This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8347

Atom PDF

Status:Closed
Start date:2014-02-18
Priority:Low
Due date:2014-02-18
Assignee:-
% Done:

100%

Category:all
Target version:-
Estimated time:6.00 points

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.