mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add ./etc/init.d/srs, refine configure to support make clean then make.
This commit is contained in:
parent
d595f8fc96
commit
3c920b933c
7 changed files with 155 additions and 6 deletions
|
@ -370,8 +370,12 @@ void SrsServer::on_signal(int signo)
|
|||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO: handle the SIGINT, SIGTERM.
|
||||
|
||||
if (signo == SIGTERM) {
|
||||
srs_trace("user terminate program");
|
||||
exit(0);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void SrsServer::close_listeners()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue