Skip to content

Commit

Permalink
daemon: Remove unnecessary error printing
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxuser committed Jun 14, 2022
1 parent 2e53611 commit 1f5011a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions service/src/daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,8 @@ int daemon_terminate(service_t *service)
ERR("kill failed, res=%d", res);
return 1;
}
} else {
ERR("PID not set: %d", service->daemon_pid);
return 2;
}


if (service->execution_thread != (pthread_t) NULL) {
res = pthread_join(service->execution_thread, NULL);
if (res != 0) {
Expand All @@ -81,10 +77,6 @@ int daemon_terminate(service_t *service)
}
service->execution_thread = (pthread_t) NULL;
}
else {
ERR("Execution thread is not up");
return 4;
}

return res;
}
Expand Down

0 comments on commit 1f5011a

Please sign in to comment.