diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-04-02 20:20:40 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-04-02 20:20:40 +0000 |
commit | 0d2a94859af08a4916a32b483cd8c7c1cdc212bb (patch) | |
tree | 66f685abb479ab54797439013313a8b03a9d7e33 /main | |
parent | 9e8c6468adb3fba754d51836dd1a803f130d0339 (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.1@255954 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-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 1f5987b72..fcf9a5a75 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -3351,7 +3351,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); |