mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 03:41:55 +00:00
refine the signals of ffmpeg.
This commit is contained in:
parent
71895a4da6
commit
2d592d177d
1 changed files with 718 additions and 717 deletions
3
trunk/src/core/srs_core_encoder.cpp
Executable file → Normal file
3
trunk/src/core/srs_core_encoder.cpp
Executable file → Normal file
|
@ -451,7 +451,8 @@ void SrsFFMPEG::stop()
|
|||
// wait for the ffmpeg to quit.
|
||||
// ffmpeg will gracefully quit if signal is:
|
||||
// 1) SIGHUP 2) SIGINT 3) SIGQUIT
|
||||
// other signals, directly exit(123).
|
||||
// other signals, directly exit(123), for example:
|
||||
// 9) SIGKILL 15) SIGTERM
|
||||
int status = 0;
|
||||
if (waitpid(pid, &status, 0) < 0) {
|
||||
srs_warn("wait the encoder quit failed, ignored. pid=%d", pid);
|
||||
|
|
Loading…
Reference in a new issue