1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

refine code, support configure to enable --memory-watch

This commit is contained in:
winlin 2015-06-13 15:45:25 +08:00
parent 0d6a574216
commit 0d66e92ab5
8 changed files with 22 additions and 17 deletions

View file

@ -569,7 +569,7 @@ void SrsServer::dispose()
st_usleep(100 * 1000);
}
#ifdef SRS_MEM_WATCH
#ifdef SRS_AUTO_MEM_WATCH
srs_memory_report();
#endif
}
@ -893,7 +893,7 @@ void SrsServer::on_signal(int signo)
signal_gmc_stop = true;
#else
srs_trace("user terminate program");
#ifdef SRS_MEM_WATCH
#ifdef SRS_AUTO_MEM_WATCH
srs_memory_report();
#endif
exit(0);