Original Post
hey all! I'm having problem understanding what happens on my game server under Linux ( doesnt happen in win32 ) The server is setuped like that : 1) a thread running the game logic ( game server itself ) 2) a thread running the console ( to get user inputs blocking on cin.getline ) After a certain time, the game reacts as if someone was at the server console, and holding the Enter key indefinitly. Thus, making my server lock threads forever since it is always receiving inputs from the console. The input is an empty string. What is the REAL good way of getting input stdin WITH SPACES without getting any stdin corruption? Any suggestions or different approach are welcomed. Thanks