Originally i didn't do pthread_join in main() to wait for the threads to terminate. The other obvious errors were fixed too. I don't know why but with two clients the game hangs ONLY after the second move is entered on one of the clients. Thanks for any other comments
Last edited by unixjingleman; 24th March 2013 at 07:37 PM.
|