diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-04-02 20:20:28 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-04-02 20:20:28 +0000 |
commit | 17bfdb81f009eebcf49432867628f56d73d3f75f (patch) | |
tree | a5308eaedb783787cc86bdd684959d4154a96f60 | |
parent | fbcd15fbcae3478a8f6fa3895b7f44cfdf32540a (diff) |
Merged revisions 255952 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r255952 | tilghman | 2010-04-02 15:19:01 -0500 (Fri, 02 Apr 2010) | 8 lines
Pass the PID of the Asterisk process, not the PID of the canary.
(closes issue #17065)
Reported by: globalnetinc
Patches:
astcanary.patch uploaded by makoto (license 38)
Tested by: frawd, globalnetinc
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@255953 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | main/asterisk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/asterisk.c b/main/asterisk.c index 5adc7db55..e11312dd5 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -3328,7 +3328,7 @@ int main(int argc, char *argv[]) close(fd); } 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); |