mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Merge 2.0release
This commit is contained in:
commit
e4742ddac7
4 changed files with 5 additions and 1 deletions
|
@ -653,6 +653,7 @@ srs_error_t SrsServer::acquire_pid_file()
|
|||
|
||||
if (fcntl(fd, F_SETLK, &lock) == -1) {
|
||||
if(errno == EACCES || errno == EAGAIN) {
|
||||
::close(fd);
|
||||
srs_error("srs is already running!");
|
||||
return srs_error_new(ERROR_SYSTEM_PID_ALREADY_RUNNING, "srs is already running");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue