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

default write log to file.

This commit is contained in:
winlin 2014-03-23 14:51:35 +08:00
parent 76290a5a12
commit ed20bd7078
3 changed files with 12 additions and 10 deletions

View file

@ -61,6 +61,10 @@ int run_master()
signal(SIGTERM, handler);
signal(SIGINT, handler);
if ((ret = _srs_server->acquire_pid_file()) != ERROR_SUCCESS) {
return ret;
}
if ((ret = _srs_server->initialize_st()) != ERROR_SUCCESS) {
return ret;
}
@ -161,9 +165,5 @@ int main(int argc, char** argv)
return ret;
}
if ((ret = _srs_server->acquire_pid_file()) != ERROR_SUCCESS) {
return ret;
}
return run();
}