winlin

refine the signals of ffmpeg.

@@ -451,7 +451,8 @@ void SrsFFMPEG::stop() @@ -451,7 +451,8 @@ void SrsFFMPEG::stop()
451 // wait for the ffmpeg to quit. 451 // wait for the ffmpeg to quit.
452 // ffmpeg will gracefully quit if signal is: 452 // ffmpeg will gracefully quit if signal is:
453 // 1) SIGHUP 2) SIGINT 3) SIGQUIT 453 // 1) SIGHUP 2) SIGINT 3) SIGQUIT
454 - // other signals, directly exit(123). 454 + // other signals, directly exit(123), for example:
  455 + // 9) SIGKILL 15) SIGTERM
455 int status = 0; 456 int status = 0;
456 if (waitpid(pid, &status, 0) < 0) { 457 if (waitpid(pid, &status, 0) < 0) {
457 srs_warn("wait the encoder quit failed, ignored. pid=%d", pid); 458 srs_warn("wait the encoder quit failed, ignored. pid=%d", pid);