summaryrefslogtreecommitdiff
path: root/main/asterisk.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/asterisk.c')
-rw-r--r--main/asterisk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/asterisk.c b/main/asterisk.c
index 93d52c053..8f557f736 100644
--- a/main/asterisk.c
+++ b/main/asterisk.c
@@ -3530,7 +3530,7 @@ int main(int argc, char *argv[])
ast_close_fds_above_n(0);
ast_set_priority(0);
- snprintf(ppid, sizeof(ppid), "%d", (int) getpid());
+ snprintf(ppid, sizeof(ppid), "%d", (int) ast_mainpid);
execlp("astcanary", "astcanary", canary_filename, ppid, (char *)NULL);