1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

For #907, Wrap ST, only use in service ST.

This commit is contained in:
winlin 2017-05-30 09:05:02 +08:00
parent 54411e0768
commit 1bf99e8f3e
49 changed files with 340 additions and 513 deletions

View file

@ -179,7 +179,7 @@ int srs_kill_forced(int& pid)
// 0 is not quit yet.
if (qpid == 0) {
st_usleep(10 * 1000);
srs_usleep(10 * 1000);
continue;
}
@ -204,7 +204,7 @@ int srs_kill_forced(int& pid)
// @remark when we use SIGKILL to kill process, it must be killed,
// so we always wait it to quit by infinite loop.
while (waitpid(pid, &status, 0) < 0) {
st_usleep(10 * 1000);
srs_usleep(10 * 1000);
continue;
}