|
@@ -136,7 +136,7 @@ const char *RunOnce::thr_name = "OBS runonce";
|
|
void PIDFileCheck(bool &already_running)
|
|
void PIDFileCheck(bool &already_running)
|
|
{
|
|
{
|
|
std::string tmpfile_name =
|
|
std::string tmpfile_name =
|
|
- "/tmp/obs-studio.lock." + to_string(geteuid());
|
|
|
|
|
|
+ "/tmp/obs-studio.lock." + std::to_string(geteuid());
|
|
int fd = open(tmpfile_name.c_str(), O_RDWR | O_CREAT | O_EXLOCK, 0600);
|
|
int fd = open(tmpfile_name.c_str(), O_RDWR | O_CREAT | O_EXLOCK, 0600);
|
|
if (fd == -1) {
|
|
if (fd == -1) {
|
|
already_running = true;
|
|
already_running = true;
|