+* BUG_FIX: Fix the screen not clearing when last person exits the server \r
+\r
+\r
+* Code clean up\r
+\r
+\r
* Added more client data 99% of the useful client data shown\r
* rework Sharedmemory_update() to not use memcpy (requested by fatbob)\r
\r
* Using a more modern unix sharedmemory API. this requires linking with librt.so (requested by fatbob)\r
* Added away to know if umurmurd is not connected/updateing the shm_t struct. I use 8bit timer with \r
rollover protection see check_serverTick() and where I use the function near bottum of mon-umurmurd.c \r
- for how to use this.\r
+ for how to use this.\r
\r
\r
* code clean up and some comments added\r
* ~95% of the useful client data shown\r
* outputs a more meaningful idle and online time, both are reported in secs (error reported by fatbob)\r
-
\ No newline at end of file
\r
int cc;\r
\r
- printf( "\033[2J\033[H" ); //clear screen VT100\r
+ printf( "\033[2J\033[H" ); fflush(stdout); //clear screen VT100\r
\r
\r
for( cc = 0 ; cc < shmptr->server_max_clients ; cc++ )\r
{\r
exit(EXIT_FAILURE); //You dont have to exit you could just report the fact that the data is not valid \r
}\r
-}
\ No newline at end of file
+}\r
void Sharedmemory_deinit(void) \r
{\r
close( shm_fd );\r
- unlink( shm_file_name );\r
+ shm_unlink( shm_file_name );\r
shmptr->umurmurd_pid = 0;\r
-}
\ No newline at end of file
+}\r