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

full support gperf gmc/gmp/gcp

This commit is contained in:
winlin 2014-03-07 15:40:55 +08:00
parent 8cd1c11add
commit 6e0bebdacf
4 changed files with 42 additions and 11 deletions

View file

@ -281,13 +281,16 @@ void SrsServer::on_signal(int signo)
return;
}
#ifdef SRS_GPERF_MC
if (signo == SIGINT) {
#ifdef SRS_GPERF_MC
srs_trace("gmc is on, main cycle will terminate normally.");
signal_gmc_stop = true;
#else
srs_trace("user terminate program");
exit(0);
#endif
return;
}
#endif
// TODO: handle the SIGINT, SIGTERM.
}