1
0
Fork 0
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:
winlin 2013-12-06 14:12:01 +08:00
parent 71895a4da6
commit 2d592d177d

3
trunk/src/core/srs_core_encoder.cpp Executable file → Normal file
View 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);