mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
SRS: Fix bug
This commit is contained in:
parent
aaebecbcc9
commit
a826926073
26 changed files with 116 additions and 10 deletions
|
|
@ -877,7 +877,7 @@ srs_error_t SrsServer::acquire_pid_file()
|
|||
// write the pid
|
||||
string pid = srs_int2str(getpid());
|
||||
if (write(fd, pid.c_str(), pid.length()) != (int)pid.length()) {
|
||||
return srs_error_new(ERROR_SYSTEM_PID_WRITE_FILE, "write pid=%d to file=%s", pid.c_str(), pid_file.c_str());
|
||||
return srs_error_new(ERROR_SYSTEM_PID_WRITE_FILE, "write pid=%s to file=%s", pid.c_str(), pid_file.c_str());
|
||||
}
|
||||
|
||||
// auto close when fork child process.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue