--- main/asterisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: b/main/asterisk.c =================================================================== --- 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);