mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
support reload pid.
This commit is contained in:
parent
0a016e58bf
commit
f652c28485
5 changed files with 41 additions and 0 deletions
|
@ -88,6 +88,7 @@ private:
|
|||
SrsIngester* ingester;
|
||||
#endif
|
||||
private:
|
||||
int pid_fd;
|
||||
std::vector<SrsConnection*> conns;
|
||||
std::vector<SrsListener*> listeners;
|
||||
bool signal_reload;
|
||||
|
@ -107,8 +108,10 @@ public:
|
|||
private:
|
||||
virtual void close_listeners();
|
||||
virtual int accept_client(SrsListenerType type, st_netfd_t client_stfd);
|
||||
// interface ISrsThreadHandler.
|
||||
public:
|
||||
virtual int on_reload_listen();
|
||||
virtual int on_reload_pid();
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue