summaryrefslogtreecommitdiff
path: root/mdns-repeater.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdns-repeater.c')
-rw-r--r--mdns-repeater.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mdns-repeater.c b/mdns-repeater.c
index 72ba37b..0853b20 100644
--- a/mdns-repeater.c
+++ b/mdns-repeater.c
@@ -223,8 +223,7 @@ static pid_t already_running() {
count = fscanf(f, "%d", &pid);
fclose(f);
if (count == 1) {
- // see if pid exists (works on daemonized instances only)
- if (getsid(pid) > 0)
+ if (kill(pid, 0) == 0)
return pid;
}
}