bullseyestudio / guns-game

Guns, the tank game
http://wiki.narc.ro/a/Guns
4 stars 0 forks source link

Server breaks bash prompt when exiting #6

Closed narc0tiq closed 12 years ago

narc0tiq commented 12 years ago

When asking the server to quit, the command-line thread remains hanging in the background somewhere, eating bash's readline() (but not zsh's!).

The fix for this would be to post a proper quit message to the thread, making it die for good when the server does.

Also, the thread shouldn't be daemonic, it does NOT need to stay alive after the main thread ends.