Skip to content

Commit

Permalink
Merge pull request #1370 from ideawu/dev
Browse files Browse the repository at this point in the history
merge Dev
  • Loading branch information
ideawu authored Sep 4, 2020
2 parents 04ece35 + b9bdd6b commit 4bd9530
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/util/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,6 @@ void Application::write_pid(){
}

void Application::check_pidfile(){
if(!app_args.is_daemon){
return;
}
if(app_args.pidfile.size()){
if(access(app_args.pidfile.c_str(), F_OK) == 0){
fprintf(stderr, "Fatal error!\nPidfile %s already exists!\n"
Expand All @@ -175,9 +172,6 @@ void Application::check_pidfile(){
}

void Application::remove_pidfile(){
if(!app_args.is_daemon){
return;
}
if(app_args.pidfile.size()){
remove(app_args.pidfile.c_str());
}
Expand Down

0 comments on commit 4bd9530

Please sign in to comment.