From: Tilghman Lesher Date: Sat, 5 Mar 2011 10:28:24 +0000 (+0000) Subject: Missed part of the conversion when we started passing ppid to astcanary. X-Git-Tag: 1.6.2.19-rc1~3^2~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4a2dfae6a375226d82db64b6e1c67d02b9295e5;p=thirdparty%2Fasterisk.git Missed part of the conversion when we started passing ppid to astcanary. (closes issue #18850) Reported by: viraptor Patches: canary_ppid.patch uploaded by viraptor (license 543) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@309677 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/asterisk.c b/main/asterisk.c index 431a9eaaa0..ec5fa3d776 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -3609,7 +3609,7 @@ int main(int argc, char *argv[]) ast_copy_string(canary_binary, argv[0], sizeof(canary_binary)); if ((lastslash = strrchr(canary_binary, '/'))) { ast_copy_string(lastslash + 1, "astcanary", sizeof(canary_binary) + canary_binary - (lastslash + 1)); - execl(canary_binary, "astcanary", canary_filename, (char *)NULL); + execl(canary_binary, "astcanary", canary_filename, ppid, (char *)NULL); } /* Should never happen */