aboutsummaryrefslogtreecommitdiffstats
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 99f7e387e..8e20a7f6b 100644
--- a/main/asterisk.c
+++ b/main/asterisk.c
@@ -3510,7 +3510,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);