We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7f553b commit d9df332Copy full SHA for d9df332
service/src/main.c
@@ -66,7 +66,7 @@ int daemon_terminate(service_t *service)
66
{
67
int res = 0;
68
69
- if (service->daemon_pid > 0) {
+ if (is_running(service->daemon_pid)) {
70
res = kill(service->daemon_pid, SIGTERM);
71
if (res != 0) {
72
ERR("kill failed, res=%d", res);
0 commit comments