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:
parent
8cd1c11add
commit
6e0bebdacf
4 changed files with 42 additions and 11 deletions
|
@ -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.
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue